QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#705028 | #3361. Cookie Monster | TheZone | AC ✓ | 1ms | 3528kb | C++14 | 229b | 2024-11-02 21:55:13 | 2024-11-02 21:55:16 |
Judging History
answer
#include <iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n,c;
cin>>n>>c;
int a=n/c;
if (n%c!=0) a++;
cout<<a<<endl;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3528kb
input:
100 1 1 1000000000 3 4739 4738 5000 4999 999999987 1 999995027 5000 636999046 2321 106394296 3990 335994386 3522 137985578 2192 794863759 1223 248521339 4984 977226666 839 529173555 750 110725930 2173 83358142 276 862820983 302 960100999 2283 694759159 682 151339400 912 958452616 3469 433218487 4432...
output:
1 333333334 2 2 999999987 200000 274451 26666 95399 62950 649930 49864 1164752 705565 50956 302023 2857024 420544 1018709 165943 276291 97748 13611 108629 261139 331555 332187 157711 10546 197532 137872 186665 193494 805 9508 83032 33694 444645 6940179 154312 249521 547117 26901 9533 121905 1974319 ...
result:
ok 100 lines
Extra Test:
score: 0
Extra Test Passed