Task: | Counting Canals |
Sender: | JeHugawa |
Submission time: | 2018-09-13 17:35:02 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.01 s | details |
#2 | WRONG ANSWER | 0.03 s | details |
#3 | WRONG ANSWER | 0.01 s | details |
#4 | WRONG ANSWER | 0.03 s | details |
#5 | WRONG ANSWER | 0.02 s | details |
#6 | WRONG ANSWER | 0.01 s | details |
#7 | WRONG ANSWER | 0.01 s | details |
#8 | WRONG ANSWER | 0.01 s | details |
#9 | WRONG ANSWER | 0.01 s | details |
#10 | WRONG ANSWER | 0.01 s | details |
#11 | WRONG ANSWER | 0.02 s | details |
#12 | WRONG ANSWER | 0.01 s | details |
#13 | WRONG ANSWER | 0.02 s | details |
#14 | WRONG ANSWER | 0.01 s | details |
#15 | WRONG ANSWER | 0.01 s | details |
#16 | WRONG ANSWER | 0.02 s | details |
#17 | WRONG ANSWER | 0.02 s | details |
#18 | WRONG ANSWER | 0.01 s | details |
#19 | WRONG ANSWER | 0.02 s | details |
#20 | WRONG ANSWER | 0.02 s | details |
#21 | WRONG ANSWER | 0.01 s | details |
#22 | WRONG ANSWER | 0.01 s | details |
#23 | WRONG ANSWER | 0.01 s | details |
#24 | WRONG ANSWER | 0.01 s | details |
#25 | WRONG ANSWER | 0.02 s | details |
#26 | WRONG ANSWER | 0.01 s | details |
#27 | WRONG ANSWER | 0.03 s | details |
#28 | WRONG ANSWER | 0.01 s | details |
#29 | WRONG ANSWER | 0.02 s | details |
#30 | WRONG ANSWER | 0.03 s | details |
Code
#include <iostream> #include <string> using namespace std; int main () { int a; int b; int f; cin >> a; cin >> b; cin >> f; string aa; string bb; string ff; cin >> aa; cin >> bb; cin >> ff; string rr = aa + bb; if (rr.find(ff) == string::npos){ cout << "YES"; exit(0); } rr = bb + aa; if (rr.find(ff) == string::npos){ cout << "YES"; exit(0); } cout << "NO"; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
5 1 2 2 3 3 4 4 5 |
correct output |
---|
15 |
user output |
---|
NO |
Test 2
Verdict: WRONG ANSWER
input |
---|
4 3 2 2 1 4 2 |
correct output |
---|
9 |
user output |
---|
YES |
Test 3
Verdict: WRONG ANSWER
input |
---|
1 |
correct output |
---|
1 |
user output |
---|
NO |
Test 4
Verdict: WRONG ANSWER
input |
---|
6 1 3 3 5 3 4 4 6 ... |
correct output |
---|
17 |
user output |
---|
NO |
Test 5
Verdict: WRONG ANSWER
input |
---|
10 10 1 1 9 9 2 2 8 ... |
correct output |
---|
19 |
user output |
---|
NO |
Test 6
Verdict: WRONG ANSWER
input |
---|
10 10 6 2 4 1 2 5 10 ... |
correct output |
---|
25 |
user output |
---|
YES |
Test 7
Verdict: WRONG ANSWER
input |
---|
10 9 1 8 1 8 5 10 2 ... |
correct output |
---|
20 |
user output |
---|
NO |
Test 8
Verdict: WRONG ANSWER
input |
---|
10 9 5 1 6 8 5 10 6 ... |
correct output |
---|
24 |
user output |
---|
YES |
Test 9
Verdict: WRONG ANSWER
input |
---|
10 10 3 1 6 6 3 10 8 ... |
correct output |
---|
26 |
user output |
---|
NO |
Test 10
Verdict: WRONG ANSWER
input |
---|
10 1 10 9 3 5 10 6 8 ... |
correct output |
---|
22 |
user output |
---|
YES |
Test 11
Verdict: WRONG ANSWER
input |
---|
100000 61825 85829 24480 90462 1014 5496 81225 44931 ... |
correct output |
---|
3130799 |
user output |
---|
YES |
Test 12
Verdict: WRONG ANSWER
input |
---|
100000 12328 59847 68010 51200 20911 42026 5769 15416 ... |
correct output |
---|
13958274 |
user output |
---|
YES |
Test 13
Verdict: WRONG ANSWER
input |
---|
100000 20362 12728 7958 63236 52010 30403 43065 57339 ... |
correct output |
---|
15065805 |
user output |
---|
YES |
Test 14
Verdict: WRONG ANSWER
input |
---|
100000 8572 72714 94149 74894 64167 42479 28114 53008 ... |
correct output |
---|
365273 |
user output |
---|
YES |
Test 15
Verdict: WRONG ANSWER
input |
---|
100000 1978 36216 32844 35606 89082 19460 32960 67705 ... |
correct output |
---|
299957 |
user output |
---|
YES |
Test 16
Verdict: WRONG ANSWER
input |
---|
100000 1 100000 2 100000 2 99999 3 99999 ... |
correct output |
---|
199999 |
user output |
---|
NO |
Test 17
Verdict: WRONG ANSWER
input |
---|
100000 1 2 2 3 3 4 4 5 ... |
correct output |
---|
5000050000 |
user output |
---|
NO |
Test 18
Verdict: WRONG ANSWER
input |
---|
100000 26026 17578 2063 27495 18825 88516 73417 44243 ... |
correct output |
---|
300106 |
user output |
---|
YES |
Test 19
Verdict: WRONG ANSWER
input |
---|
100000 62594 92916 39396 77445 39736 18145 51960 63921 ... |
correct output |
---|
305292 |
user output |
---|
YES |
Test 20
Verdict: WRONG ANSWER
input |
---|
100000 35361 29834 80103 20628 56121 98538 96141 60130 ... |
correct output |
---|
299953 |
user output |
---|
YES |
Test 21
Verdict: WRONG ANSWER
input |
---|
100000 83387 6566 1464 36071 83940 1947 30207 81630 ... |
correct output |
---|
18170796 |
user output |
---|
YES |
Test 22
Verdict: WRONG ANSWER
input |
---|
100000 57048 59591 13592 7630 96625 65606 39702 62144 ... |
correct output |
---|
122357921 |
user output |
---|
YES |
Test 23
Verdict: WRONG ANSWER
input |
---|
100000 665 16956 97424 82744 19070 82235 29207 21317 ... |
correct output |
---|
255370837 |
user output |
---|
YES |
Test 24
Verdict: WRONG ANSWER
input |
---|
100000 73391 7794 48957 7794 10376 7794 68812 7794 ... |
correct output |
---|
661409588 |
user output |
---|
YES |
Test 25
Verdict: WRONG ANSWER
input |
---|
100000 25428 93716 47665 20024 43005 47665 47665 4035 ... |
correct output |
---|
775090231 |
user output |
---|
YES |
Test 26
Verdict: WRONG ANSWER
input |
---|
100000 88514 75301 20924 75301 8871 75301 26360 75301 ... |
correct output |
---|
1860034699 |
user output |
---|
YES |
Test 27
Verdict: WRONG ANSWER
input |
---|
100000 31831 1 46505 1 76032 1 41560 1 ... |
correct output |
---|
199999 |
user output |
---|
YES |
Test 28
Verdict: WRONG ANSWER
input |
---|
100000 38156 15310 92580 66280 10847 49530 8672 38794 ... |
correct output |
---|
27926764 |
user output |
---|
YES |
Test 29
Verdict: WRONG ANSWER
input |
---|
100000 60300 13490 372 28166 4123 3653 97935 79942 ... |
correct output |
---|
27607584 |
user output |
---|
YES |
Test 30
Verdict: WRONG ANSWER
input |
---|
100000 93798 40604 95227 14928 80126 98198 54474 67913 ... |
correct output |
---|
22603373 |
user output |
---|
YES |