Task: | Merkkijono |
Sender: | Antti Mäkimattila |
Submission time: | 2020-02-09 12:40:04 +0200 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | WRONG ANSWER | 0 |
#3 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#2 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#3 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#4 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#5 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#6 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#7 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#8 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#9 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#10 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#11 | WRONG ANSWER | 0.01 s | 3 | details |
#12 | WRONG ANSWER | 0.01 s | 3 | details |
#13 | WRONG ANSWER | 0.01 s | 3 | details |
#14 | WRONG ANSWER | 0.01 s | 3 | details |
#15 | WRONG ANSWER | 0.01 s | 3 | details |
#16 | WRONG ANSWER | 0.01 s | 3 | details |
#17 | WRONG ANSWER | 0.01 s | 3 | details |
#18 | WRONG ANSWER | 0.01 s | 3 | details |
#19 | WRONG ANSWER | 0.01 s | 3 | details |
#20 | WRONG ANSWER | 0.01 s | 3 | details |
#21 | WRONG ANSWER | 0.01 s | 3 | details |
#22 | WRONG ANSWER | 0.01 s | 3 | details |
#23 | WRONG ANSWER | 0.01 s | 3 | details |
#24 | WRONG ANSWER | 0.01 s | 3 | details |
#25 | WRONG ANSWER | 0.01 s | 3 | details |
#26 | WRONG ANSWER | 0.01 s | 3 | details |
Code
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string merkit = "1357"; string pal = ""; for(int i = 0;i<n;i++) { if(i % 2 == 0) pal += merkit[0]; if(i % 3 == 0) pal += merkit[1]; if(i % 5 == 0) pal += merkit[2]; if(i % 7 == 0) pal += merkit[3]; } cout << pal; return 0; }
Test details
Test 1
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
1 |
correct output |
---|
1 |
user output |
---|
1357 |
Test 2
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
2 |
correct output |
---|
13 |
user output |
---|
1357 |
Test 3
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
131 |
user output |
---|
13571 |
Test 4
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
1317 |
user output |
---|
135713 |
Test 5
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
5 |
correct output |
---|
13171 |
user output |
---|
1357131 |
Test 6
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
6 |
correct output |
---|
131713 |
user output |
---|
13571315 |
Test 7
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
7 |
correct output |
---|
1317131 |
user output |
---|
1357131513 |
Test 8
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
13171315 |
user output |
---|
13571315137 |
Test 9
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
131713151 |
user output |
---|
135713151371 |
Test 10
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
1317131513 |
user output |
---|
1357131513713 |
Test 11
Group: 3
Verdict: WRONG ANSWER
input |
---|
11 |
correct output |
---|
13171315131 |
user output |
---|
135713151371315 |
Test 12
Group: 3
Verdict: WRONG ANSWER
input |
---|
12 |
correct output |
---|
131713151317 |
user output |
---|
135713151371315 |
Test 13
Group: 3
Verdict: WRONG ANSWER
input |
---|
13 |
correct output |
---|
1317131513171 |
user output |
---|
13571315137131513 |
Test 14
Group: 3
Verdict: WRONG ANSWER
input |
---|
14 |
correct output |
---|
13171315131713 |
user output |
---|
13571315137131513 |
Test 15
Group: 3
Verdict: WRONG ANSWER
input |
---|
15 |
correct output |
---|
131713151317131 |
user output |
---|
1357131513713151317 |
Test 16
Group: 3
Verdict: WRONG ANSWER
input |
---|
16 |
correct output |
---|
1317131513171315 |
user output |
---|
135713151371315131735 |
Test 17
Group: 3
Verdict: WRONG ANSWER
input |
---|
17 |
correct output |
---|
13171315131713151 |
user output |
---|
1357131513713151317351 |
Test 18
Group: 3
Verdict: WRONG ANSWER
input |
---|
18 |
correct output |
---|
131713151317131513 |
user output |
---|
1357131513713151317351 |
Test 19
Group: 3
Verdict: WRONG ANSWER
input |
---|
19 |
correct output |
---|
1317131513171315131 |
user output |
---|
135713151371315131735113 |
Test 20
Group: 3
Verdict: WRONG ANSWER
input |
---|
20 |
correct output |
---|
13171315131713151317 |
user output |
---|
135713151371315131735113 |
Test 21
Group: 3
Verdict: WRONG ANSWER
input |
---|
40 |
correct output |
---|
131713151317131513171315131713... |
user output |
---|
135713151371315131735113153711... |
Test 22
Group: 3
Verdict: WRONG ANSWER
input |
---|
128 |
correct output |
---|
131713151317131513171315131713... |
user output |
---|
135713151371315131735113153711... Truncated |
Test 23
Group: 3
Verdict: WRONG ANSWER
input |
---|
582 |
correct output |
---|
131713151317131513171315131713... |
user output |
---|
135713151371315131735113153711... Truncated |
Test 24
Group: 3
Verdict: WRONG ANSWER
input |
---|
891 |
correct output |
---|
131713151317131513171315131713... |
user output |
---|
135713151371315131735113153711... Truncated |
Test 25
Group: 3
Verdict: WRONG ANSWER
input |
---|
999 |
correct output |
---|
131713151317131513171315131713... |
user output |
---|
135713151371315131735113153711... Truncated |
Test 26
Group: 3
Verdict: WRONG ANSWER
input |
---|
1000 |
correct output |
---|
131713151317131513171315131713... |
user output |
---|
135713151371315131735113153711... Truncated |