QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#723930#2628. Self StudyModyKachef#10 149ms7784kbC++23412b2024-11-08 04:04:152024-11-08 04:04:16

Judging History

你现在查看的是最新测评结果

  • [2024-11-08 04:04:16]
  • 评测
  • 测评结果:10
  • 用时:149ms
  • 内存:7784kb
  • [2024-11-08 04:04:15]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define int long long

void doWork(){
    int n , m;
    cin >> n >> m;
    vector<int> a(n) , b(n);
    for (int i = 0 ; i < n ; i++) cin >> a[i];
    for (int i = 0 ; i < n ; i++) cin >> b[i];
    int mn = 1e18;
    for (int i = 0 ; i < n ; i++){
        mn = min(mn , max(a[i] , b[i]));
    }
    cout << mn;
}

signed main(){
    doWork();
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 3808kb

input:

1 1
548641561
724453206

output:

724453206

result:

ok single line: '724453206'

Test #2:

score: 10
Accepted
time: 0ms
memory: 3800kb

input:

2 1
80304386 1597
1258971 98815137

output:

80304386

result:

ok single line: '80304386'

Test #3:

score: 10
Accepted
time: 0ms
memory: 3508kb

input:

3 1
718661397 138698100 479852432
476459687 907845291 453667817

output:

479852432

result:

ok single line: '479852432'

Test #4:

score: 10
Accepted
time: 0ms
memory: 3460kb

input:

4 1
40507275 25309 13 361883
8128172 62257460 3 1027728

output:

13

result:

ok single line: '13'

Test #5:

score: 10
Accepted
time: 0ms
memory: 3808kb

input:

5 1
991877575 974223811 527727300 578005153 205111294
310841900 329838723 543248627 534715774 830419619

output:

543248627

result:

ok single line: '543248627'

Test #6:

score: 10
Accepted
time: 0ms
memory: 3460kb

input:

6 1
673477 2620072 362852511 86 69304 4342089
247938 152093194 1 1775681 59980917 409

output:

673477

result:

ok single line: '673477'

Test #7:

score: 10
Accepted
time: 0ms
memory: 3464kb

input:

7 1
178014106 857686017 847502205 846499927 769922152 825294743 94179401
107076300 387039548 308448172 416996505 919652417 358968960 881155943

output:

178014106

result:

ok single line: '178014106'

Test #8:

score: 10
Accepted
time: 0ms
memory: 3568kb

input:

8 1
38952827 24114401 19 2 29754 391071941 895126917 27
66338173 5206521 1428592 7035 23684037 278 311 14429699

output:

7035

result:

ok single line: '7035'

Test #9:

score: 10
Accepted
time: 0ms
memory: 3572kb

input:

67 1
610928627 863614572 535107894 102892262 781620356 439829100 777321721 608856766 686478481 752884266 585966742 85481271 904743197 42797812 27698813 425144291 38360264 117768094 645740865 903621093 57241636 507954073 682213933 707630124 334595719 716583236 534534992 50416286 344293088 613848792 2...

output:

95375906

result:

ok single line: '95375906'

Test #10:

score: 10
Accepted
time: 3ms
memory: 3876kb

input:

4481 1
530263320 551405488 720280735 756921262 57615896 890005460 245664758 943419373 832394839 370240673 420526498 695670828 910866430 705658035 543576358 811997503 723914542 278031919 407895048 896804222 935879701 773845225 12699717 570880703 852422012 176717545 740287923 997989010 451013204 21496...

output:

12073279

result:

ok single line: '12073279'

Test #11:

score: 10
Accepted
time: 146ms
memory: 7784kb

input:

299999 1
353932896 283957966 10468088 561126160 702975326 865946692 549886847 881809173 22487130 377759910 103679048 7383003 533620194 601101806 658483835 596524345 643103064 242207881 180146144 156685989 785620097 337780504 174463500 517216117 937644576 779893031 616819943 353759011 10199744 587374...

output:

4481987

result:

ok single line: '4481987'

Test #12:

score: 10
Accepted
time: 149ms
memory: 7772kb

input:

300000 1
244960338 81301400 314994847 781781085 269762243 884560570 719108129 537499271 171153472 86878356 612696563 982213163 436289004 473491259 565304038 547393429 796429448 777777257 11490151 799145244 622205824 156454272 252970682 917967775 361170206 487728888 959769335 81559521 242249146 80493...

output:

1263603

result:

ok single line: '1263603'

Test #13:

score: 10
Accepted
time: 106ms
memory: 7772kb

input:

300000 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:

1000000000

result:

ok single line: '1000000000'

Test #14:

score: 10
Accepted
time: 106ms
memory: 7784kb

input:

300000 1
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 10000...

output:

1000000000

result:

ok single line: '1000000000'

Subtask #2:

score: 0
Wrong Answer

Test #15:

score: 0
Wrong Answer
time: 0ms
memory: 3796kb

input:

3 3
430074929 299686894 507918575
430074929 299686894 507918575

output:

299686894

result:

wrong answer 1st lines differ - expected: '1015837150', found: '299686894'

Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Wrong Answer

Test #54:

score: 0
Wrong Answer
time: 23ms
memory: 3892kb

input:

46277 26082660
216820392 975920171 670198908 751879346 785464410 137803695 990316039 136082781 508319725 285053836 962754829 189537126 843451157 603648162 288458523 785309345 169328756 469187125 338962865 683500991 389745945 300198265 425154931 243946562 947186175 802786983 215106495 843125200 25944...

output:

5596

result:

wrong answer 1st lines differ - expected: '1649349400858800', found: '5596'

Subtask #5:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%