QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#588690#8083. KaChang!huaxiamengjin#WA 24ms3720kbC++14175b2024-09-25 14:03:572024-09-25 14:03:58

Judging History

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

  • [2024-09-25 14:03:58]
  • 评测
  • 测评结果:WA
  • 用时:24ms
  • 内存:3720kb
  • [2024-09-25 14:03:57]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,tt,x,ans=0;
	cin>>n>>tt;
	for (int i=1;i<=n;i++)
	cin>>x,ans=max(ans,(x+tt-1)/tt);
	cout<<ans<<"\n";
} 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3640kb

input:

5 1000
998 244 353 1111 2333

output:

3

result:

ok single line: '3'

Test #2:

score: 0
Accepted
time: 21ms
memory: 3580kb

input:

99944 47127
3230263 4167211 318112 1816147 3062424 2654981 611161 1333247 307357 964695 310768 3246001 4434829 2337929 2153212 2867974 1494571 1933027 2229761 2770791 2522917 2577041 2260821 2699229 24345 2976015 1982841 583857 1146088 4318594 113313 3202197 1297531 2606975 4583005 387155 4597011 31...

output:

100

result:

ok single line: '100'

Test #3:

score: 0
Accepted
time: 18ms
memory: 3720kb

input:

99972 59328
13412024 7699775 6975180 9151217 10772363 1954133 2948178 6187923 7745447 13804005 4862926 8944126 9737862 8655257 8051344 2465176 548147 3459226 11381866 6053870 11689406 485660 10792838 33031 10363001 8737260 4238124 10263773 273176 1312990 1076554 9928015 6298676 10913121 668201 22415...

output:

234

result:

ok single line: '234'

Test #4:

score: 0
Accepted
time: 24ms
memory: 3708kb

input:

99919 1
50214918 46199266 934484497 594641585 611306761 149066347 13205505 84623727 502986331 341842051 953833651 211264041 70882617 540482309 924602413 287992263 18243991 156555840 320450817 64383551 381431667 574236769 61548721 9807076 4564531 91174401 657532300 56493721 113482657 64745976 1727382...

output:

1000000000

result:

ok single line: '1000000000'

Test #5:

score: 0
Accepted
time: 24ms
memory: 3584kb

input:

99985 78653
49172566 23414514 194047400 123389217 322649053 163017931 100707549 116694773 412889660 72018407 188008432 377374801 54420301 141077403 218020251 19379390 201226933 295309553 9639397 420190967 112464725 191545025 109717950 82394955 138597761 60281535 33488239 24473109 61466926 226293265 ...

output:

5483

result:

ok single line: '5483'

Test #6:

score: 0
Accepted
time: 23ms
memory: 3712kb

input:

99958 87460
58567906 62123479 64026657 26757304 99920257 25418524 40898428 24861623 83320489 6015808 43187424 82658191 30652801 33304916 98619317 45746311 45530274 27732409 52348378 6901381 11419650 3620486 488936 36699979 51800810 46382449 21068791 9695788 100105547 51190504 93256215 42643877 95675...

output:

1174

result:

ok single line: '1174'

Test #7:

score: 0
Accepted
time: 16ms
memory: 3580kb

input:

99977 68571
57715 93669 12871 27448 69951 48585 42313 5903 86733 62049 2773 62584 39161 50719 67669 46429 52785 86009 26558 25609 26800 75593 41451 79987 20402 80259 1926 100051 20149 70472 2654 1404 76948 75937 8577 89375 51903 40925 84821 87393 78031 75291 77989 34999 51708 23502 61438 77997 9506 ...

output:

2

result:

ok single line: '2'

Test #8:

score: -100
Wrong Answer
time: 16ms
memory: 3652kb

input:

99902 92333
5517 73426 50950 33849 18920 38144 25678 59373 23969 33061 60026 68219 44854 63105 16322 21544 42390 5725 6631 38886 66644 66701 26566 62538 48805 36765 46422 24808 64320 9046 28788 71588 23089 33926 49934 54163 62252 58546 31032 60613 31175 65389 13966 12497 23000 78052 42023 80009 3517...

output:

1

result:

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