ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#211087 | #3800. 蛋糕 | three_zero30 | 20 | 1ms | 1324kb | C++11 | 289b | 2024-08-09 10:49:14 | 2024-08-09 12:45:35 |
answer
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int l,r;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
for(int i=1;i<=18;i++){
cin>>l>>r;
if(l%r==0){
cout<<int(l/r)<<'\n';
}
else{
cout<<double(l)/double(r)<<'\n';
}
}
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 5
Accepted
time: 0ms
memory: 1248kb
input:
85 85 59 59 52 52 96 12 62 31 48 24 85 85 85 85 69 69 76 38 72 24 54 27 100 20 72 72 42 42 81 81 78 ...
output:
1 1 1 8 2 2 1 1 1 2 3 2 5 1 1 1 1 1
result:
ok 18 tokens
Test #2:
score: 5
Accepted
time: 1ms
memory: 1248kb
input:
9696 9696 9036 9036 4771 4771 7751 7751 9073 9073 9085 9085 6444 358 4581 4581 8505 8505 8028 2007 9...
output:
1 1 1 1 1 1 18 1 1 4 2 5 2 1 1 1 1 1
result:
ok 18 tokens
Test #3:
score: 5
Accepted
time: 0ms
memory: 1248kb
input:
648044 648044 949839 949839 401844 401844 916962 916962 875649 875649 227737 227737 827552 827552 64...
output:
1 1 1 1 1 1 1 1 1 1 2 7 2 2 5 2 1 2
result:
ok 18 tokens
Test #4:
score: 5
Accepted
time: 0ms
memory: 1324kb
input:
37 25 43 10 56 10 47 2 50 50 66 80 34 50 3 8 56 1 49 10 97 5 10 1 76 40 52 50 70 5 26 1 97 32 32 64
output:
1.48 4.3 5.6 23.5 1 0.825 0.68 0.375 56 4.9 19.4 10 1.9 1.04 14 26 3.03125 0.5
result:
ok 18 tokens
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
451 100 844 50 744 100 874 8 19 625 443 400 415 512 766 625 189 5 71 128 247 80 307 640 395 160 101 ...
output:
4.51 16.88 7.44 109.25 0.0304 1.1075 0.810547 1.2256 37.8 0.554688 3.0875 0.479687 2.46875 6.3125 0....
result:
wrong answer 7th words differ - expected: '0.810546875', found: '0.810547'
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
7819 400 2868 512 4833 800 6024 6250 3285 8000 9721 125 4037 6250 8159 1250 4544 3125 6659 5000 8331...
output:
19.5475 5.60156 6.04125 0.96384 0.410625 77.768 0.64592 6.5272 1.45408 1.3318 41.655 2.14656 12.8336...
result:
wrong answer 2nd words differ - expected: '5.6015625', found: '5.60156'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 1324kb
input:
562036 800 494900 160000 710305 4096 549145 125000 277786 125 375881 390625 992034 2 702342 3125 569...
output:
702.545 3.09313 173.414 4.39316 2222.29 0.962255 496017 224.749 7.12381 47.1192 170.057 14.0441 8.42...
result:
wrong answer 2nd words differ - expected: '3.093125', found: '3.09313'
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
910 999 944 999 1978 999 581 999 482 999 380 999 130 999 838 999 326 999 1097 999 568 999 358 999 11...
output:
0.910911 0.944945 1.97998 0.581582 0.482482 0.38038 0.13013 0.838839 0.326326 1.0981 0.568569 0.3583...
result:
wrong answer 1st words differ - expected: '0.(910)', found: '0.910911'
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
8452 9999 4205 9999 4177 9999 73522 9999 2260 9999 9992 9999 45229 9999 6275 9999 1886 9999 63203 99...
output:
0.845285 0.420542 0.417742 7.35294 0.226023 0.9993 4.52335 0.627563 0.188619 6.32093 0.69957 0.02290...
result:
wrong answer 1st words differ - expected: '0.(8452)', found: '0.845285'
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
652832 99999 86603 99999 698815 99999 733498 99999 81815 99999 208109 99999 37024 99999 4883 99999 7...
output:
6.52839 0.866039 6.98822 7.33505 0.818158 2.08111 0.370244 0.0488305 7.4412 0.879169 3.56576 0.27487...
result:
wrong answer 1st words differ - expected: '6.(52838)', found: '6.52839'
Test #11:
score: 0
Wrong Answer
time: 0ms
memory: 1324kb
input:
103 491 83 1 114 757 214 7 851 243 672 391 532 3 130 61 385 577 119 233 398 241 607 559 460 1 3 717 ...
output:
0.209776 83 0.150594 30.5714 3.50206 1.71867 177.333 2.13115 0.667244 0.51073 1.65145 1.08587 460 0....
result:
wrong answer 1st words differ - expected: '0.(209775967413441955193482688...926680244399185336048879...
Test #12:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
4173 2067 5038 4221 9002 4023 5399 8061 3182 4767 6110 1191 2345 1919 2234 8581 2139 4047 5103 8841 ...
output:
2.01887 1.19356 2.23763 0.669768 0.667506 5.13014 1.22199 0.260343 0.52854 0.577197 1.55541 12.1836 ...
result:
wrong answer 1st words differ - expected: '2.(0188679245283)', found: '2.01887'
Test #13:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
122878 63889 743422 282861 708740 16059 224329 125883 600815 5271 229177 746563 135403 246477 916903...
output:
1.9233 2.62822 44.1335 1.78204 113.985 0.306976 0.549353 188.78 0.541669 15.8666 4.1376 0.186004 3.2...
result:
wrong answer 1st words differ - expected: '1.(923304481209597896351484606...955735729155253643037142...
Test #14:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
792 834 521 262 307 500 269 340 155 96 414 536 173 96 137 735 187 321 577 788 787 958 811 192 563 28...
output:
0.94964 1.98855 0.614 0.791176 1.61458 0.772388 1.80208 0.186395 0.582555 0.732234 0.821503 4.22396 ...
result:
wrong answer 1st words differ - expected: '0.(9496402877697841726618705035971223021582733812)', foun...
Test #15:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
1985 1210 1986 723 1986 628 1988 52 1991 1026 1989 519 1989 1226 1989 21 1984 712 1996 27 1996 816 1...
output:
1.6405 2.74689 3.16242 38.2308 1.94055 3.83237 1.62235 94.7143 2.78652 73.9259 2.44608 22.6364 2.154...
result:
wrong answer 1st words differ - expected: '1.6(4049586776859504132231)', found: '1.6405'
Test #16:
score: 0
Wrong Answer
time: 0ms
memory: 1316kb
input:
9941 8960 4951 2688 5659 3776 6203 4096 3449 8816 1517 2269 8977 5183 4189 3777 4928 9496 37 9552 89...
output:
1.10949 1.84189 1.49868 1.5144 0.391221 0.668576 1.73201 1.10908 0.518955 0.00387353 4.11773 0.78974...
result:
wrong answer 1st words differ - expected: '1.10948660(714285)', found: '1.10949'
Test #17:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
80258 62742 8017 18626 10499 36864 27011 55552 32593 37660 61539 72315 2281 51248 45697 64256 3866 3...
output:
1.27918 0.43042 0.284804 0.486229 0.865454 0.850985 0.0445091 0.711171 0.102348 0.509279 3.65979 0.8...
result:
wrong answer 1st words differ - expected: '1.(279175034267316948774345733...800930795958050428739919...
Test #18:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
50937 87224 94005 68794 95287 97008 56806 11386 84920 37159 65243 1776 42961 26609 62779 4311 56039 ...
output:
0.583979 1.36647 0.982259 4.98911 2.28531 36.7359 1.61453 14.5625 0.888042 1.47218 1.76364 0.911486 ...
result:
wrong answer 1st words differ - expected: '0.583(979180042190222874438228...451802256259745024305237...
Test #19:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
1000000 999983 999999 999983 999998 999983 999997 999983 999996 999983 999995 999983 999994 999983 9...
output:
1.00002 1.00002 1.00002 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00001 1.00...
result:
wrong answer 1st words differ - expected: '1.(000017000289004913083522419...247686210665581314882353...
Test #20:
score: 0
Wrong Answer
time: 0ms
memory: 1320kb
input:
426133 364441 128599 195258 959887 821056 929791 105216 155657 164864 813863 352256 552086 307253 21...
output:
1.16928 0.658611 1.16909 8.83697 0.944154 2.31043 1.79684 0.479449 4.61718 0.36476 0.390478 2.44061 ...
result:
wrong answer 1st words differ - expected: '1.(169278429155885314769743250...778828397463512612466764...