Search found 12 matches

by dewsworld
Sun Nov 28, 2010 10:36 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31161

Re: WA 488

Well I recode it and there is no newline problem I guess, Still I'm getting WA #include <iostream> #include <cstdio> using namespace std ; int main() { // freopen("in.txt", "r", stdin ) ; int noTest ; int a, f ; int i, j, k ; cin >> noTest ; while( noTest-- ) { cin >> a >> f ; for( i = 0 ; i < f ; i...
by dewsworld
Sat Nov 27, 2010 9:23 pm
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 11137

Re: 11455 - Behold My Quadrangle

Any idea why I've got WA on this #include <iostream> #include <cstdio> using namespace std ; int main() { // freopen("in.txt", "r", stdin ) ; int a,b,c,d ; int noTest ; int max ; cin >> noTest ; while( noTest-- ) { cin >> a >> b >> c >> d ; max = a ; if( max < b ) max = b ; if( max < c ) max = c ; i...
by dewsworld
Sat Nov 27, 2010 8:26 pm
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28808

Re: 371"Ackermann Functions "

Can anyone find me out the problem, please? I'm getting WA #include <stdio.h> int main() { long long int a, b ; long long int i ; long long int maxSeq, maxSeqNum ; long long int count, t ; while( scanf("%lld%lld", &a, &b ) ) { if( a+b == 0 ) break ; maxSeq = 0 ; for( i = a ; i <= b ; i++ ) { t = i ;...
by dewsworld
Sat Nov 27, 2010 6:58 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 20560

Re: 490 - Rotating Sentences

Can anyone help me with this code? I get WA with it, still ignore of why... #include <iostream> #include <cstdio> #include <string> #include <vector> using namespace std ; int main() { // freopen("in.txt", "r", stdin) ; vector<string>in ; string t ; int i, j, max ; while( getline(cin, t ) ) { in.pus...
by dewsworld
Sat Nov 27, 2010 6:03 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31161

Re: 488 - Triangle Wave

Could anyone help me with this code please? I can't shoot the problem. #include <iostream> #include <cstdio> using namespace std ; int main() { // freopen("in.txt", "r", stdin ) ; int noTest ; int a, f ; int i, j, k ; cin >> noTest ; while( noTest-- ) { cin >> a >> f ; for( i = 0 ; i < f ; i++ ) { f...
by dewsworld
Sun Oct 17, 2010 5:06 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31161

Re: WA 488

I cannot find what my problem is :( Can anyone help pleasure ... #include <stdio.h> int main() { int noTest ; int a, f ; int i, j, k; scanf("%d", &noTest ) ; while( noTest-- ) { scanf("%d%d", &a, &f) ; for( i = 0 ; i < f ; i++ ) { for( j = 0 ; j < a ; j++ ) { for( k = 0 ; k <= j ; k++) printf("%d", ...
by dewsworld
Thu Sep 02, 2010 12:57 pm
Forum: Volume 5 (500-599)
Topic: 575 - Skew Binary
Replies: 18
Views: 3708

Re: Skew Binary: got WA

Ooops, I actually didn't find any thread about Skew binary while googling.
And I found my fault. It's pretty silly, I didn't read the question carefully.
Power inits from 2^1 -1 not 2^0 -1 Got AC after that... :)
by dewsworld
Sat Aug 28, 2010 8:30 am
Forum: Volume 5 (500-599)
Topic: 575 - Skew Binary
Replies: 18
Views: 3708

Skew Binary: got WA

Can anyone please tell me why I get WA in this code... Thanks in advance #include <stdio.h> #include <string.h> #define uint32 unsigned int int main() { // freoen("in.txt", "rb", stdin ); char input[100] ; uint32 len ; int i ; uint32 dec ; uint32 factor ; while( gets(input) != NULL ) { if( (len = st...
by dewsworld
Sat Aug 28, 2010 8:23 am
Forum: Volume 5 (500-599)
Topic: 541 - Error Correction
Replies: 27
Views: 11770

Re: 541-error correction --help is wanted

Can you help me with this code ? :-? I get WA #include <stdio.h> int main() { //freopen("in.txt", "rb", stdin ); int input ; int i, j ; bool map[100][100] ; bool vuaRow[100] ; bool vuaCol[100] ; int count ; while( scanf("%d", &input) ) { if( input == 0 ) break ; for( i = 0 ; i < input ; i++ ) for( j...
by dewsworld
Fri Aug 27, 2010 1:17 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 80112

Re: 10038 - Jolly Jumpers

"Not Jolly" should be "Not jolly"
That made me silly :D
Thanks Helloneo
by dewsworld
Sat Aug 14, 2010 6:46 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 80112

Re: 10038 - Jolly Jumpers

Could anyone please tell me why this is not working?????? :(

Code: Select all

Removed after AC
by dewsworld
Fri Aug 13, 2010 11:56 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 35767

Re: 272 - TeX Quotes

Simple thing shuld be kept smple :)

Code: Select all

//perhaps ACed solution is not allowed here 
}

Go to advanced search