QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#132944 | #6384. Area | ngano_upat_na | 100 ✓ | 1ms | 3640kb | C++17 | 322b | 2023-08-01 10:32:02 | 2023-08-01 10:32:05 |
Judging History
answer
#include "bits/stdc++.h"
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
int ans = 0;
for (int i=0; i<n; i++) {
int a, b;
cin >> a >> b;
a *= b;
ans = max(ans,a);
}
cout << ans;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 50
Accepted
Test #1:
score: 50
Accepted
time: 1ms
memory: 3480kb
input:
1 1 1
output:
1
result:
ok single line: '1'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
1 10 1
output:
10
result:
ok single line: '10'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3480kb
input:
1 89 12
output:
1068
result:
ok single line: '1068'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
1 33 548
output:
18084
result:
ok single line: '18084'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
1 585 581
output:
339885
result:
ok single line: '339885'
Subtask #2:
score: 50
Accepted
Test #6:
score: 50
Accepted
time: 0ms
memory: 3420kb
input:
100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
1
result:
ok single line: '1'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3420kb
input:
100 4 7 5 5 10 10 8 5 7 5 5 4 6 4 8 8 6 2 3 3 7 10 8 10 2 6 3 7 7 9 2 7 5 4 4 2 5 9 1 10 5 10 4 10 3 1 2 4 9 6 9 9 6 10 5 2 1 6 10 8 10 4 4 3 5 10 4 5 4 10 3 5 10 7 7 2 6 3 6 9 6 1 5 5 6 4 4 6 1 4 1 5 6 6 8 6 6 8 6 2 4 3 5 6 5 7 10 4 10 2 2 1 5 2 7 8 7 8 9 1 5 9 6 6 6 4 9 9 9 10 3 4 9 7 10 10 4 9 7 ...
output:
100
result:
ok single line: '100'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
100 51 82 14 81 17 37 92 78 15 64 86 8 8 89 77 87 10 66 12 15 25 100 47 92 78 21 63 20 49 13 36 41 79 41 87 16 69 87 76 3 60 80 49 100 59 70 8 72 71 38 97 45 14 71 54 76 4 81 46 59 29 39 3 92 22 49 99 53 52 59 31 74 43 92 23 42 9 44 47 82 40 7 9 12 55 3 85 37 22 46 52 84 41 98 77 21 17 63 91 62 43 6...
output:
7221
result:
ok single line: '7221'
Test #9:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
1 472 4
output:
1888
result:
ok single line: '1888'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3380kb
input:
50 780 499 984 837 526 481 482 944 136 862 605 265 631 5 967 974 293 574 467 969 845 573 224 102 873 17 120 648 996 694 313 244 129 404 583 899 314 541 496 525 857 443 78 297 2 575 137 430 319 387 651 382 411 594 746 845 232 18 289 6 81 889 175 174 1000 805 950 799 713 475 685 951 925 729 447 262 21...
output:
941858
result:
ok single line: '941858'
Test #11:
score: 0
Accepted
time: 1ms
memory: 3412kb
input:
100 659 94 621 937 714 68 160 562 896 589 622 836 725 381 739 300 936 629 166 935 828 826 947 331 814 246 300 180 680 222 796 48 89 10 11 219 99 424 525 572 916 608 466 846 581 33 848 768 622 11 596 718 352 164 949 757 897 404 945 675 308 712 710 573 862 730 755 566 546 63 84 207 486 752 289 601 12 ...
output:
881685
result:
ok single line: '881685'
Extra Test:
score: 0
Extra Test Passed