Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17884 2024-04-24 03:33:37 dnt Shift the liquid Java 103 ms 42444 kb Wrong Answer - 1
Test Cases
CPU Memory Verdict
1 103 ms 42444 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.java
Download
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class CompetitiveExam {
  5.  
  6.  
  7. public static void main(String[] args) {
  8. // TODO code application logic here
  9. Scanner sc = new Scanner(System.in);
  10. int a = sc.nextInt();
  11. int b = sc.nextInt();
  12. int moves = b/a;
  13. if(b%a!=0){
  14. moves++;
  15. }
  16. System.out.println(moves);
  17. }
  18.  
  19. }
  20.  
  21.