Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17875 2024-04-24 03:16:56 ewu_intra24_mock_u_84 Shift the liquid C 0 ms 1552 kb Accepted
Test Cases
CPU Memory Verdict
1 0 ms 1540 kb Accepted
2 0 ms 1548 kb Accepted
3 0 ms 1540 kb Accepted
4 0 ms 1528 kb Accepted
5 0 ms 1548 kb Accepted
6 0 ms 1548 kb Accepted
7 0 ms 1440 kb Accepted
8 0 ms 1512 kb Accepted
9 0 ms 1552 kb Accepted
10 0 ms 1488 kb Accepted
11 0 ms 1448 kb Accepted
12 0 ms 1448 kb Accepted
13 0 ms 1544 kb Accepted
14 0 ms 1448 kb Accepted
15 0 ms 1528 kb Accepted
16 0 ms 1532 kb Accepted
17 0 ms 1548 kb Accepted
18 0 ms 1516 kb Accepted
19 0 ms 1460 kb Accepted
20 0 ms 1488 kb Accepted
21 0 ms 1448 kb Accepted
Source Code
program.c
Download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n, m;
  6. scanf("%d %d", &n, &m);
  7. if(1 <= n && m <= 1000000000){
  8. if(m>n || m == n) printf("%d\n", 1);
  9. else if (n>m && n%m != 0){
  10. printf("%d\n", n/m+1);
  11. }
  12. else printf("%d\n", n/m);
  13. }
  14. else printf("Error\n");
  15. return 0;
  16. }