Search found 6 matches

by ??????
Wed Nov 20, 2013 4:51 pm
Forum: Volume 120 (12000-12099)
Topic: 12085 - Mobile Casanova
Replies: 15
Views: 3277

Re: 12085 Mobile Casanova -- Why WA?

help plz, i got 8 times WA in this problem :evil: #include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <cctype> #include <iostream> #include <algorithm> #include <vector> using namespace std; long long int ph[100001]; bool flag[100002]; int main() { long long int i,j,n,...
by ??????
Fri Nov 01, 2013 8:13 pm
Forum: Volume 120 (12000-12099)
Topic: 12085 - Mobile Casanova
Replies: 15
Views: 3277

Re: 12085 Mobile Casanova -- Why WA?

it shows correct outputs, but i am getting WA... help plz :-? #include <cstdio> #include <cstring> #include <stdlib.h> #include <iostream> using namespace std; long long int F1(long long int x,long long int y) { long long int n(0); for(long long int i=x,j=y,d=1; i>0 || j>0 ;i/=10 ,j/=10 ,d*=10 ) { ...
by ??????
Wed Aug 07, 2013 12:42 am
Forum: Volume 109 (10900-10999)
Topic: 10925 - Krakovia
Replies: 50
Views: 21547

Re: 10925 - Krakovia

WA!!!! :( Help pls!!! #include <string.h> #include <iostream> using namespace std; char* stradd(char s[100000],char d[100000]); char* strdiv(char s[100000],int x); int main() { int n,x,t,i; char s[100000],d[100000]="0"; for(t=1;;t++) { cin>>n>>x;if(n==0&&x==0)break; for(i=0;i<n;i++) { cin>>s; strcp...
by ??????
Sat Jul 06, 2013 6:47 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28269

Re: 10279 - Mine Sweeper

Why WA?? :( :( #include <stdio.h> #include <string.h> int main() { char s[1000][1000],ss[1000][1000],ch; long long int n,m,i,j,x,y,i1,j1,t,T,C; scanf("%lld",&T);printf("\n"); for(t=1;t<=T;) { C=0; scanf("%lld",&n);m=n; for(i=0;i<n;i++){for(j=0;j<m;){scanf("%c",&ch);if(ch=='*'||ch=='.') { s[i][j]=ch...
by ??????
Thu Jun 13, 2013 7:01 am
Forum: Volume 114 (11400-11499)
Topic: 11470 - Square Sums
Replies: 9
Views: 3902

Re: 11470-Square Sums

Why i am getting WA???? :( #include <stdio.h> int main() { long long int ara[100][100],sqval[10000]; long long int n,i,j,i1,j1,x,x1,y,y1,z,t,nsq,c,s1,s2,s3,s4,sum; for(t=0;;) { scanf("%d",&n);if(n==0) break; for(i=0;i<n;i++) { for(j=0;j<n;j++) { scanf("%lld",&ara[i][j]); } } if(n%2==0) nsq=n/2; els...
by ??????
Thu Jun 13, 2013 5:48 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66809

Re: 10189 - Minesweeper

Why i am getting Wrong Answer? Can anyone help? Here is my code #include <stdio.h> #include <string.h> int main() { char s[1000][1000],ch; long long int n,m,i,j,x,y,i1,j1,t; for(t=1;;) { scanf("%lld%lld",&n,&m);if(m==0&n==0) {break;} if(n>0&&m>0&&n<=100&&m<=100) { for(i=0;i<n;i++) { for(j=0;j<m;) {...

Go to advanced search