yeah, i know that the output is the correct one. but i'm asking if there are any special case that i've to test, because i don't know why i'm getting WA.
i don't like to post code, but i can't really understand what's wrong, so i'll post it in order to you check and try to tell me whats wrong. (And ...
Search found 10 matches
- Wed Apr 16, 2003 12:03 am
- Forum: Volume 103 (10300-10399)
- Topic: 10364 - Square
- Replies: 47
- Views: 22247
- Tue Apr 15, 2003 12:56 am
- Forum: Volume 103 (10300-10399)
- Topic: 10364 - Square
- Replies: 47
- Views: 22247
10364 - WA
What should be the output to this input?
7
2 2 2
4 1 1 1 1
5 10 20 30 40 50
8 1 7 2 6 4 4 3 5
6 1 1 1 1 1 3
9 1 7 2 2 6 3 5 4 2
5 0 0 0 0 0
My output is:
no
yes
no
yes
no
yes
yes
Were is it wrong? there are any special cases?
Thanks
7
2 2 2
4 1 1 1 1
5 10 20 30 40 50
8 1 7 2 6 4 4 3 5
6 1 1 1 1 1 3
9 1 7 2 2 6 3 5 4 2
5 0 0 0 0 0
My output is:
no
yes
no
yes
no
yes
yes
Were is it wrong? there are any special cases?
Thanks
- Mon Apr 14, 2003 1:46 am
- Forum: Volume 103 (10300-10399)
- Topic: 10364 - Square
- Replies: 47
- Views: 22247
- Mon Apr 14, 2003 12:42 am
- Forum: Volume 103 (10300-10399)
- Topic: 10352 - Count the eWords
- Replies: 30
- Views: 14791
- Sun Apr 13, 2003 11:47 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10352 - Count the eWords
- Replies: 30
- Views: 14791
10352
after reading all the posts, i still don't understand why i'm getting WA. i've tested the acm input and i've got the same output.
can anyone tell me whats wrong with my code?
[cpp]
#include <iostream>
#include <string>
#include <map>
#include <algorithm>
#include <stdio.h>
struct Estrut{
char ...
can anyone tell me whats wrong with my code?
[cpp]
#include <iostream>
#include <string>
#include <map>
#include <algorithm>
#include <stdio.h>
struct Estrut{
char ...
- Tue Apr 08, 2003 2:44 am
- Forum: Volume 7 (700-799)
- Topic: 740 - Baudot Data Communication Code
- Replies: 7
- Views: 3633
- Tue Apr 08, 2003 1:28 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 102111
- Tue Apr 08, 2003 12:26 am
- Forum: Volume 101 (10100-10199)
- Topic: 10106 - Product
- Replies: 98
- Views: 40236
- Mon Apr 07, 2003 10:05 pm
- Forum: Volume 7 (700-799)
- Topic: 740 - Baudot Data Communication Code
- Replies: 7
- Views: 3633
740 - Baudot Data Communication Code
Cam someone send me some crucial input cases? I
- Tue Dec 03, 2002 1:19 am
- Forum: Volume 3 (300-399)
- Topic: 338 - Long Multiplication
- Replies: 59
- Views: 15693
338 - what's wrong whit this output??
12345
862
-----
24690
74070
98760
--------
10641390
100003
100010
------
100003
100003
-----------
10001300030
345
3455
----
1725
1725
1380
1035
-------
1191975
0
123456789
---------
0
2
324
---
8
4
6
---
648
0
234
---
0
862
-----
24690
74070
98760
--------
10641390
100003
100010
------
100003
100003
-----------
10001300030
345
3455
----
1725
1725
1380
1035
-------
1191975
0
123456789
---------
0
2
324
---
8
4
6
---
648
0
234
---
0