Codeforces Round #380 (Div. 1, Rated, Based on Technocup 2017 – Elimination Round 2), problem: (B) Sea Battle Solution in C/C++

By |2017-04-07T22:11:49+00:00November 21st, 2016|Categories: C/C++, Programming|Tags: , , , , , , , , , |

Hi Guys , I Just Tried to solve the Sea Battle problem , hope you might like it , please share if you've any better code . #include<stdio.h> #include<stdlib.h> typedef unsigned u; char S[222222];u Q[222222],Qi; int main() { u n,a,b,i,j,k; scanf("%u%u%u%u%s",&n,&a,&b,&k,S); for(i=-1,j=0;++i<n;) { //printf("!%u [...]