Search found 4 matches

by rloursua
Sun Mar 16, 2014 8:14 am
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 26246

Re: 195 - Anagram

Please help me. I really have no idea why I'm getting WA. I tried removing and placing back the blank link at the end of the output but both returned as WA #include <stdio.h> #include <string.h> #include <stdlib.h> #include <algorithm> #include <iostream> int compare (const void * a, const void * b)...
by rloursua
Sat Feb 22, 2014 7:45 am
Forum: Volume 103 (10300-10399)
Topic: 10370 - Above Average
Replies: 62
Views: 18761

Re: 10370 - Above Average

Could somebody help me please. I do not get what is wrong with my code. I tried removing and putting the blank link after the output but both came out as WA #include <stdio.h> #include <string.h> int main () { int test = 0; int tc = 0; int num = 0; int grades[1000]; int i=0; scanf("%d",&test); for(t...
by rloursua
Thu Feb 13, 2014 1:18 pm
Forum: Volume 107 (10700-10799)
Topic: 10783 - Odd Sum
Replies: 34
Views: 15060

Re: 10783- Why WA??

Could somebody help me? why do i get getting WA #include <iostream> using namespace std; int main() { int test=0; int a,b; cin >> test; for( int i=0; i<test ;i++) { cin >> a >> b; int j=a; int sum=0; for(j=a;j<=b;j++) { if(j%2) sum=sum+j; } if(i!=test-1) cout << "Case " << i+1 << ": " << sum << endl...
by rloursua
Tue Feb 11, 2014 5:58 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 78647

Re: 10038 - Jolly Jumpers

Could somebody help me with my code? I keep Getting WA :( #include <iostream> using namespace std; int ls(int *arr, int s, int q) { int i=0; for(i=0;i<s;i++) { if(arr[i]==q) return i; } return -1; } int main() { int x,i; int num[3005]; int copy[3005]; while(cin.good()) { i=0;x=0; cin >> x; for(i=0;i...

Go to advanced search