QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#355439 | #8110. Addition | ucup-team004# | WA | 1ms | 3848kb | C++20 | 976b | 2024-03-16 17:50:49 | 2024-03-16 17:50:50 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using i64 = long long;
#define For(i,l,r) for(int i=(int)(l);i<=(int)(r);i++)
#define PI pair<ll,int>
#define fi first
#define se second
#define mp make_pair
#define pb push_back
string yc[100];
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
vector<string> ans;
yc[0]='0'; yc[1]='1'; yc[2]='2';
For(i,0,1)ans.pb(yc[i]+"*b "+yc[i]+"*0b");
For(i,0,1)For(j,0,1)ans.pb(yc[i]+yc[j]+"cb "+"b"+yc[i+j]);
For(i,0,1)For(j,0,1)ans.pb(yc[i]+"c"+yc[j]+" "+yc[j]+yc[i]+"c");
For(i,0,1)ans.pb(yc[i]+"* *"+yc[i]+"c");
ans.pb("+ *a");
For(i,0,1)ans.pb("a"+yc[i]+" "+yc[i]+"a");
ans.pb("a b");
For(i,0,1)ans.pb(yc[i]+"b b"+yc[i]);
For(i,0,1)ans.pb(yc[i]+"2 "+yc[i+1]+"0");
ans.pb("*b2 *b10");
For(i,0,1)ans.pb("*b"+yc[i]+" "+yc[i]);
cout<<ans.size()<<endl;
for(auto i:ans)cout<<i<<endl;
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3776kb
input:
1
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #2:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
2
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #3:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
3
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #4:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
4
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #5:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
5
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #6:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
6
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #7:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
7
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #8:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
8
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #9:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
9
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #10:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
10
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #11:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
11
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #12:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
12
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #13:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
13
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #14:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
14
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #15:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
15
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #16:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
16
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
ok OK!
Test #17:
score: -100
Wrong Answer
time: 0ms
memory: 3504kb
input:
17
output:
23 0*b 0*0b 1*b 1*0b 00cb b0 01cb b1 10cb b1 11cb b2 0c0 00c 0c1 10c 1c0 01c 1c1 11c 0* *0c 1* *1c + *a a0 0a a1 1a a b 0b b0 1b b1 02 10 12 20 *b2 *b10 *b0 0 *b1 1
result:
wrong answer Zla odpowiedz. Oczekiwano 10, a wczytano *01ccb0