ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#210373 | #3782. 神奇钢笔 | Chenzihan0826 | 100 | 0ms | 1200kb | C++11 | 3.4kb | 2024-08-06 11:42:41 | 2024-08-06 12:12:58 |
answer
#include<bits/stdc++.h>
#define int long long
using namespace std;
int read()
{ int x = 0,f = 1;char ch = getchar();
while (ch < '0' || ch > '9')ch == '-'?f = -1:ch = getchar();
while (ch >= '0' && ch <= '9')x = (x << 1) + (x << 3) + (ch ^ 48),ch = getchar();
return x * f;}
signed main()
{
int i;
cin>>i;
if(i>=88)cout<<9999999999999999;
else if(i==87)cout<<9999999999999991;
else if(i==86)cout<<9999999999999990;
else if(i==85)cout<<9999999999999910;//九千九百九十九兆九千九百九十九亿九千九百九十九万九千九百一十
else if(i==82)cout<<9999999999999900;//九千九百九十九兆九千九百九十九亿九千九百九十九万九千九百
else if(i==81)cout<<9999999999999100;//九千九百九十九兆九千九百九十九亿九千九百九十九万九千一百
else if(i>=74&&i<81)cout<<9999999999999000;//九千九百九十九兆九千九百九十九亿九千九百九十九万九千
else if(i==73)cout<<9999999999991000;//九千九百九十九兆九千九百九十九亿九千九百九十九万一千
else if(i>=69&&i<73)cout<<9999999999990000;//九千九百九十九兆九千九百九十九亿九千九百九十九万
else if(i==68)cout<<9999999999910000;//九千九百九十九兆九千九百九十九亿九千九百九十一万
else if(i==67)cout<<9999999999900000;//九千九百九十九兆九千九百九十九亿九千九百九十万
else if(i==66)cout<<9999999999100000;//九千九百九十九兆九千九百九十九亿九千九百一十万
else if(i>=63&&i<66)cout<<9999999999000000;//九千九百九十九兆九千九百九十九亿九千九百万
else if(i==62)cout<<9999999991000000;//九千九百九十九兆九千九百九十九亿九千一百万
else if(i==55&&i<62)cout<<9999999990000000;//九千九百九十九兆九千九百九十九亿九千万
else if(i==54)cout<<9999999910000000;//九千九百九十九兆九千九百九十九亿一千万
else if(i==47&&i<54)cout<<9999999900000000;//九千九百九十九兆九千九百九十九亿
else if(i==46)cout<<9999999100000000;//九千九百九十九兆九千九百九十一亿
else if(i==45)cout<<9999999000000000;//九千九百九十九兆九千九百九十亿
else if(i==44)cout<<9999991000000000;//九千九百九十九兆九千九百一十亿
else if(i>=41&&i<=43)cout<<9999990000000000;//九千九百九十九兆九千九百亿
else if(i==40)cout<<9999910000000000;//九千九百九十九兆九千一百亿
else if(i>=33&&i<40)cout<<9999900000000000;//九千九百九十九兆九千亿
else if(i==32)cout<<9999100000000000;// 九千九百九十九兆一千亿
else if(i>=25&&i<32)cout<<9999000000000000; // 九千九百九十九兆
else if(i==24)cout<<9991000000000000;// 九千九百九十一兆
else if(i==23)cout<<9990000000000000; //九千九百九十兆
else if(i>19&&i<=22)cout<<9910000000000000;//九千九百一十兆
else if(i==19)cout<<9100000000000000;//九千九百兆
else if(i==18)cout<<9100000000000000;//九千一百兆
else if(i>=11&&i<18)cout<<9000000000000000;//九千兆
else if(i==10)cout<<1000000000000000;//一千兆
else if(i==9)cout<<10000000000000;//一十兆
else if(i==7)cout<<1000000000000;//一兆
else if(i==8)cout<<9000000000000;//九兆
else if(i==6)cout<<1000000000;
else if(i==5)cout<<900000000;
else if(i==4)cout<<100000000;
else if(i==3)cout<<10;
else if(i==2)cout<<9;
else if(i==1)cout<<1;
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
9
output:
10000000000000
result:
ok "10000000000000"
Test #2:
score: 10
Accepted
time: 0ms
memory: 1200kb
input:
10
output:
1000000000000000
result:
ok "1000000000000000"
Test #3:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
87
output:
9999999999999991
result:
ok "9999999999999991"
Test #4:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
88
output:
9999999999999999
result:
ok "9999999999999999"
Test #5:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
100
output:
9999999999999999
result:
ok "9999999999999999"
Test #6:
score: 10
Accepted
time: 0ms
memory: 1200kb
input:
69
output:
9999999999990000
result:
ok "9999999999990000"
Test #7:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
66
output:
9999999999100000
result:
ok "9999999999100000"
Test #8:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
54
output:
9999999910000000
result:
ok "9999999910000000"
Test #9:
score: 10
Accepted
time: 0ms
memory: 1200kb
input:
85
output:
9999999999999910
result:
ok "9999999999999910"
Test #10:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
44
output:
9999991000000000
result:
ok "9999991000000000"
Extra Test:
score: 0
Extra Test Passed