Task: | Sum |
Sender: | pwild |
Submission time: | 2019-01-20 02:04:47 +0200 |
Language: | C++ |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.02 s | details |
#2 | WRONG ANSWER | 0.01 s | details |
#3 | WRONG ANSWER | 0.02 s | details |
#4 | WRONG ANSWER | 0.02 s | details |
#5 | ACCEPTED | 0.02 s | details |
#6 | WRONG ANSWER | 0.02 s | details |
#7 | WRONG ANSWER | 0.02 s | details |
#8 | WRONG ANSWER | 0.01 s | details |
#9 | WRONG ANSWER | 0.01 s | details |
#10 | WRONG ANSWER | 0.03 s | details |
#11 | WRONG ANSWER | 0.02 s | details |
#12 | WRONG ANSWER | 0.03 s | details |
#13 | WRONG ANSWER | 0.03 s | details |
#14 | WRONG ANSWER | 0.02 s | details |
#15 | WRONG ANSWER | 0.02 s | details |
#16 | WRONG ANSWER | 0.03 s | details |
#17 | WRONG ANSWER | 0.01 s | details |
#18 | WRONG ANSWER | 0.02 s | details |
#19 | WRONG ANSWER | 0.03 s | details |
#20 | WRONG ANSWER | 0.02 s | details |
#21 | WRONG ANSWER | 0.03 s | details |
#22 | WRONG ANSWER | 0.03 s | details |
#23 | WRONG ANSWER | 0.01 s | details |
#24 | WRONG ANSWER | 0.03 s | details |
#25 | WRONG ANSWER | 0.01 s | details |
#26 | WRONG ANSWER | 0.02 s | details |
#27 | WRONG ANSWER | 0.03 s | details |
#28 | WRONG ANSWER | 0.01 s | details |
Code
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll,ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-9; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i,a,b) for (ll i = (a); i < (b); i++) #define FORD(i,a,b) for (ll i = (b)-1; i >= (a); i--) #define mp make_pair #define mt make_tuple #define pb push_back #define eb emplace_back #define xx first #define yy second #define has(c,i) ((c).find(i) != end(c)) #define TR(X) ({ if(1) cerr << "TR: " << (#X) << " = " << (X) << endl; }) vector<pair<string,string>> res2 = { {"Z0","Z"}, {"Z1","Z"}, {"0Z","Z"}, {"1Z","Z"}, {"0M","M0"}, {"1M","M1"}, {"0N","N0"}, {"1N","N1"}, {"0BM","B"}, {"1BN","B"}, {"BM","Z"}, {"BN","Z"}, {"H0","0H"}, {"H1","1H"}, {"HE","C"}, {"D","BH"}, {"C00","00E"}, {"C01","01E"}, {"C10","10E"}, {"C11","11E"}, {"C0","Z"}, {"C1","Z"}, {"0C","MC"}, {"1C","NC"}, {"BC","_"}, {"B0","0D"}, {"B1","1D"}, {"1A","A1"}, {"A","BC"}, {"0","A0"}, {"11","_"}}; vector<pair<string,string>> res3 = { {"Z0","Z"}, {"Z1","Z"}, {"0Z","Z"}, {"1Z","Z"}, {"0X","X0"}, {"1X","X1"}, {"0Y","Y0"}, {"1Y","Y1"}, {"0AX","A"}, {"1AY","A"}, {"AX","Z"}, {"AY","Z"}, {"0BX","XB"}, {"1BY","YB"}, {"BX","Z"}, {"BY","Z"}, {"Q0","0Q"}, {"Q1","1Q"}, {"QH","C"}, {"QG","BQ"}, {"F","AQ"}, {"C000","000H"}, {"C001","001H"}, {"C010","010H"}, {"C011","011H"}, {"C100","100H"}, {"C101","101H"}, {"C110","110H"}, {"C111","111H"}, {"C0","Z"}, {"C1","Z"}, {"0C","XC"}, {"1C","YC"}, {"B00","00G"}, {"B01","01G"}, {"B10","10G"}, {"B11","11G"}, {"ABC","_"}, {"A0","0F"}, {"A1","1F"}, {"1W","W1"}, {"W","ABC"}, {"0","W0"}, {"111","_"}}; vector<pair<string,string>> res4 = { {"Z0","Z"}, {"Z1","Z"}, {"0Z","Z"}, {"1Z","Z"}, {"0X","X0"}, {"1X","X1"}, {"0Y","Y0"}, {"1Y","Y1"}, {"0AX","A"}, {"1AY","A"}, {"AX","Z"}, {"AY","Z"}, {"0BX","XB"}, {"1BY","YB"}, {"BX","Z"}, {"BY","Z"}, {"0CX","XC"}, {"1CY","YC"}, {"CX","Z"}, {"CY","Z"}, {"Q0","0Q"}, {"Q1","1Q"}, {"QI","D"}, {"QH","CQ"}, {"QG","BQ"}, {"F","AQ"}, {"D0000","0000I"}, {"D0001","0001I"}, {"D0010","0010I"}, {"D0011","0011I"}, {"D0100","0100I"}, {"D0101","0101I"}, {"D0110","0110I"}, {"D0111","0111I"}, {"D1000","1000I"}, {"D1001","1001I"}, {"D1010","1010I"}, {"D1011","1011I"}, {"D1100","1100I"}, {"D1101","1101I"}, {"D1110","1110I"}, {"D1111","1111I"}, {"D0","Z"}, {"D1","Z"}, {"0D","XD"}, {"1D","YD"}, {"C000","000H"}, {"C001","001H"}, {"C010","010H"}, {"C011","011H"}, {"C100","100H"}, {"C101","101H"}, {"C110","110H"}, {"C111","111H"}, {"B00","00G"}, {"B01","01G"}, {"B10","10G"}, {"B11","11G"}, {"ABCD","_"}, {"A0","0F"}, {"A1","1F"}, {"1W","W1"}, {"W","ABCD"}, {"0","W0"}, {"111","_"}}; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll n; cin >> n; vector<pair<string,string>> res; if (n == 2) res = res2; if (n == 3) res = res3; if (n == 4) res = res4; cout << sz(res) << endl; for (auto p: res) cout << p.xx << " -> " << p.yy << endl; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 |
correct output |
---|
0 |
user output |
---|
0 |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 |
correct output |
---|
0 |
user output |
---|
31 Z0 -> Z Z1 -> Z 0Z -> Z 1Z -> Z ... Truncated |
Test 3
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
0 |
user output |
---|
44 Z0 -> Z Z1 -> Z 0Z -> Z 1Z -> Z ... Truncated |
Test 4
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
0 |
user output |
---|
65 Z0 -> Z Z1 -> Z 0Z -> Z 1Z -> Z ... Truncated |
Test 5
Verdict: ACCEPTED
input |
---|
5 |
correct output |
---|
0 |
user output |
---|
0 |
Test 6
Verdict: WRONG ANSWER
input |
---|
6 |
correct output |
---|
1 |
user output |
---|
0 |
Test 7
Verdict: WRONG ANSWER
input |
---|
7 |
correct output |
---|
1 |
user output |
---|
0 |
Test 8
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
2 |
user output |
---|
0 |
Test 9
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
3 |
user output |
---|
0 |
Test 10
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
4 |
user output |
---|
0 |
Test 11
Verdict: WRONG ANSWER
input |
---|
20 |
correct output |
---|
24 |
user output |
---|
0 |
Test 12
Verdict: WRONG ANSWER
input |
---|
30 |
correct output |
---|
61 |
user output |
---|
0 |
Test 13
Verdict: WRONG ANSWER
input |
---|
40 |
correct output |
---|
114 |
user output |
---|
0 |
Test 14
Verdict: WRONG ANSWER
input |
---|
50 |
correct output |
---|
184 |
user output |
---|
0 |
Test 15
Verdict: WRONG ANSWER
input |
---|
60 |
correct output |
---|
271 |
user output |
---|
0 |
Test 16
Verdict: WRONG ANSWER
input |
---|
70 |
correct output |
---|
374 |
user output |
---|
0 |
Test 17
Verdict: WRONG ANSWER
input |
---|
80 |
correct output |
---|
494 |
user output |
---|
0 |
Test 18
Verdict: WRONG ANSWER
input |
---|
90 |
correct output |
---|
631 |
user output |
---|
0 |
Test 19
Verdict: WRONG ANSWER
input |
---|
100 |
correct output |
---|
784 |
user output |
---|
0 |
Test 20
Verdict: WRONG ANSWER
input |
---|
200 |
correct output |
---|
3234 |
user output |
---|
0 |
Test 21
Verdict: WRONG ANSWER
input |
---|
300 |
correct output |
---|
7351 |
user output |
---|
0 |
Test 22
Verdict: WRONG ANSWER
input |
---|
400 |
correct output |
---|
13134 |
user output |
---|
0 |
Test 23
Verdict: WRONG ANSWER
input |
---|
500 |
correct output |
---|
20584 |
user output |
---|
0 |
Test 24
Verdict: WRONG ANSWER
input |
---|
600 |
correct output |
---|
29701 |
user output |
---|
0 |
Test 25
Verdict: WRONG ANSWER
input |
---|
700 |
correct output |
---|
40484 |
user output |
---|
0 |
Test 26
Verdict: WRONG ANSWER
input |
---|
800 |
correct output |
---|
52934 |
user output |
---|
0 |
Test 27
Verdict: WRONG ANSWER
input |
---|
900 |
correct output |
---|
67051 |
user output |
---|
0 |
Test 28
Verdict: WRONG ANSWER
input |
---|
1000 |
correct output |
---|
82834 |
user output |
---|
0 |