Search found 3 matches

by shakil ahmed
Mon Nov 07, 2011 11:47 am
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 43934

Re: 11340 - Newspaper

why WA???? plz help me............... :( #include <stdio.h> #include <string.h> char str[10100]; int main() { int t,k; scanf("%d",&t); getchar(); for(k=1;k<=t;k++) { int a[260]={0},j,d,m,i,n; char ch; scanf("%d",&m); getchar(); for(i=1;i<=m;i++) { scanf("%c %d",&ch,&d); getchar(); a[ch]=d; } scanf("...
by shakil ahmed
Sun Nov 06, 2011 9:05 pm
Forum: Volume 103 (10300-10399)
Topic: 10374 - Election
Replies: 44
Views: 15106

Re: 10374 - Election

WHY runtime error?????plz help.i am very new in this site.thanx................:) :cry: #include <stdio.h> #include <string.h> struct x { char name [1000]; char party[1000]; char k; } a[300]; char str[1000]; int main() { int n,q; scanf("%d\n",&n); for(q=1;q<=n;q++) { int m,i,j,t; scanf("%d\n",&m); f...
by shakil ahmed
Sat Oct 22, 2011 5:08 am
Forum: Volume 116 (11600-11699)
Topic: 11661 - Burger Time?
Replies: 37
Views: 10803

Re: 11661 - Burger ?Why WA in MY code

plz help me?why WA #include <stdio.h> char a[128],c,d; int main() { a['D']='R'; a['R']='D'; long long int n,i,j; while(scanf("%lld",&n)==1) {if(n==0) break; long long int min=90000000; for(i=0;i<n;i++) {scanf("%c",&c); if(c=='Z'||c=='D'||c=='R') { if(c=='Z') min=0; d=a[c]; break;}} long long int k=0...

Go to advanced search