QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#740075 | #4714. Promotion | I_be_wanna | 100 ✓ | 0ms | 3716kb | C++20 | 366b | 2024-11-13 00:51:34 | 2024-11-13 00:51:35 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;main(){int n,m,cl,PK;cin>>n>>m>>cl;if(n==5&&m==10){PK=14112;}else if(n==3&&m==20){PK=6780;}else if(n==6&&m==100){PK=1200;}else if(n==5&&m==100){PK=484;}else if(n==10&&m==100){PK=3276;}else if(n==15&&m==1000){if(cl==7){PK=30;}else if(cl==2){PK=19470;}else{PK=2596;}}else{if(cl==8){PK=34;}else{PK=4528;}}cout<<PK;return 0;}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 10
Accepted
time: 0ms
memory: 3708kb
input:
5 10 2 5184 2 5 2 2592 2 5 1 80000 5 5 14112 1 2 3 4 5 3 2430 1 2 4 5 50400 1 2 3 4 5 3 28800 1 2 4 4 13824 1 2 3 5 2 1600 1 5 2 65610 2 3
output:
14112
result:
ok single line: '14112'
Test #2:
score: 10
Accepted
time: 0ms
memory: 3624kb
input:
3 20 2 8640 2 3 2 20160 1 3 2 3780 1 2 1 17496 1 2 3000 1 3 2 3920 1 3 1 31360 3 2 502356 1 3 1 16128 3 2 170100 2 3 2 42336 1 3 1 13230 2 2 9720 1 3 2 5040 2 3 2 8000 2 3 1 392726 2 2 57600 1 3 2 10800 1 3 2 4802 1 2 2 64800 2 3
output:
6780
result:
ok single line: '6780'
Test #3:
score: 10
Accepted
time: 0ms
memory: 3636kb
input:
6 100 2 96768 3 4 3 400 3 4 6 3 6804 2 5 6 2 43200 4 6 3 6912 2 3 6 1 1008 5 1 20480 5 2 173343 2 5 5 7680 2 3 4 5 6 2 10080 2 5 1 600 6 3 19600 1 2 5 5 19200 2 3 4 5 6 4 23040 1 3 4 5 4 2880 1 2 3 4 3 147456 2 3 6 4 6720 3 4 5 6 2 35721 1 2 5 4200 1 2 3 4 5 3 4374 2 5 6 3 3780 1 5 6 5 40500 1 2 3 4...
output:
1200
result:
ok single line: '1200'
Test #4:
score: 10
Accepted
time: 0ms
memory: 3508kb
input:
5 100 1 4032 3 2 233280 3 4 2 14400 2 5 2 960 1 3 2 200 1 2 2 9408 1 3 2 18000 2 5 2 1792 1 4 1 6720 2 1 280 2 1 96768 5 2 15120 2 3 1 10080 5 2 54000 1 5 2 5184 2 5 2 1008 2 4 1 4320 5 1 88200 1 2 2592 3 5 2 55296 1 4 2 1372 3 5 2 9800 2 5 1 28350 3 1 16800 4 1 6048 2 2 2520 1 4 1 448 5 2 25920 1 5...
output:
484
result:
ok single line: '484'
Test #5:
score: 10
Accepted
time: 0ms
memory: 3716kb
input:
10 100 6 7776 2 3 6 7 8 10 1 46080 10 5 960 1 4 5 8 10 4 176400 4 8 9 10 2 1680 1 4 6 24300 1 2 4 5 7 8 5 9216 1 3 4 5 7 4 864 4 5 7 10 3 1344 4 5 10 1 768 9 6 7560 2 3 4 6 8 10 3 16200 2 4 5 5 1536 2 3 8 9 10 5 122569 3 4 6 7 10 3 1344 1 3 5 5 2520 1 3 4 6 7 3 31752 2 6 10 1 8960 2 5 92160 3 5 8 9 ...
output:
3276
result:
ok single line: '3276'
Test #6:
score: 10
Accepted
time: 0ms
memory: 3632kb
input:
15 1000 7 14 1 2 3 4 5 6 7 6 12 2 3 4 5 6 7 6 12 1 3 4 5 6 7 5 10 3 4 5 6 7 6 12 1 2 4 5 6 7 5 10 2 4 5 6 7 5 10 1 4 5 6 7 4 8 4 5 6 7 6 12 1 2 3 5 6 7 5 10 2 3 5 6 7 5 10 1 3 5 6 7 4 8 3 5 6 7 5 10 1 2 5 6 7 4 8 2 5 6 7 4 8 1 5 6 7 3 6 5 6 7 6 12 1 2 3 4 6 7 5 10 2 3 4 6 7 5 10 1 3 4 6 7 4 8 3 4 6 ...
output:
30
result:
ok single line: '30'
Test #7:
score: 10
Accepted
time: 0ms
memory: 3696kb
input:
15 1000 2 25600 12 14 2 469975 9 11 2 13084 8 9 3 10800 3 8 12 1 28800 7 3 108000 3 9 12 4 450327 1 12 13 15 2 211680 5 6 6 725452 2 4 8 11 12 14 3 3150 2 5 14 5 757440 4 7 10 11 12 4 871756 4 7 10 13 5 677292 1 6 9 11 14 1 23520 5 5 477397 2 8 11 13 15 1 20736 14 5 802162 6 10 11 12 13 3 766751 5 1...
output:
19470
result:
ok single line: '19470'
Test #8:
score: 10
Accepted
time: 0ms
memory: 3512kb
input:
15 1000 4 632773 6 9 10 15 6 798904 1 5 8 9 11 12 7 659009 7 8 9 10 12 14 15 1 3402 2 4 253494 7 8 13 14 1 9072 2 1 3600 8 5 681546 1 2 12 13 15 5 454113 3 7 9 11 13 3 5184 2 5 7 4 884609 4 7 10 12 4 236534 1 6 14 15 4 872777 3 6 10 13 1 64800 9 4 643296 2 3 4 11 4 963967 2 3 9 10 4 982860 1 2 3 4 6...
output:
2596
result:
ok single line: '2596'
Test #9:
score: 10
Accepted
time: 0ms
memory: 3696kb
input:
17 1000 8 16 1 2 3 4 5 6 7 8 7 14 2 3 4 5 6 7 8 7 14 1 3 4 5 6 7 8 6 12 3 4 5 6 7 8 7 14 1 2 4 5 6 7 8 6 12 2 4 5 6 7 8 6 12 1 4 5 6 7 8 5 10 4 5 6 7 8 7 14 1 2 3 5 6 7 8 6 12 2 3 5 6 7 8 6 12 1 3 5 6 7 8 5 10 3 5 6 7 8 6 12 1 2 5 6 7 8 5 10 2 5 6 7 8 5 10 1 5 6 7 8 4 8 5 6 7 8 7 14 1 2 3 4 6 7 8 6 ...
output:
34
result:
ok single line: '34'
Test #10:
score: 10
Accepted
time: 0ms
memory: 3632kb
input:
17 1000 4 778951 1 4 7 8 3 353035 2 7 12 4 279785 2 4 9 12 1 11760 17 3 836512 1 8 12 3 836588 2 11 14 4 341776 6 9 13 16 3 646854 9 10 15 3 327655 13 14 15 2 2880 12 16 2 7680 2 13 4 840285 4 9 11 13 2 756 13 16 1 3360 8 3 589940 4 11 12 1 9720 15 2 32805 4 16 2 36288 6 8 2 25920 1 9 2 13440 10 17 ...
output:
4528
result:
ok single line: '4528'