Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17874 2024-04-24 03:16:21 ewu_intra24_mock_u_84 Shift the liquid C 0 ms 1492 kb Wrong Answer - 1
Test Cases
CPU Memory Verdict
1 0 ms 1492 kb Wrong Answer
2 - - Skipped
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
8 - - Skipped
9 - - Skipped
10 - - Skipped
11 - - Skipped
12 - - Skipped
13 - - Skipped
14 - - Skipped
15 - - Skipped
16 - - Skipped
17 - - Skipped
18 - - Skipped
19 - - Skipped
20 - - Skipped
21 - - Skipped
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+1);
  13. }
  14. else printf("Error\n");
  15. return 0;
  16. }
  17.  
  18.