Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17933 2024-04-24 13:20:34 ewu_intra24u_194 Age of Bangladesh Java 108 ms 41760 kb Accepted
Test Cases
CPU Memory Verdict
1 107 ms 41760 kb Accepted
2 105 ms 38312 kb Accepted
3 100 ms 38084 kb Accepted
4 101 ms 41560 kb Accepted
5 108 ms 39328 kb Accepted
6 108 ms 38332 kb Accepted
7 106 ms 38220 kb Accepted
8 105 ms 38004 kb Accepted
9 108 ms 38188 kb Accepted
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3. public class Test {
  4.  
  5. public static void main(String[] args) {
  6.  
  7.  
  8. Scanner input = new Scanner(System.in);
  9. int year = input.nextInt();
  10. if(year > 1971){
  11. System.out.print(year - 1971);
  12. }
  13.  
  14. }
  15. }
  16.