結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-12-31 15:49:32 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 511 bytes |
コンパイル時間 | 3,087 ms |
コンパイル使用メモリ | 74,816 KB |
実行使用メモリ | 53,844 KB |
最終ジャッジ日時 | 2024-12-16 04:34:51 |
合計ジャッジ時間 | 5,747 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
ソースコード
import static java.lang.System.*; import java.util.Scanner; public class No446{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String A=sc.nextLine(); String B=sc.nextLine(); try{ int a=Integer.parseInt(A); int b=Integer.parseInt(B); if(check(a)==1&&check(b)==1){ out.println("OK"); }else{ out.println("NG"); } }catch(Exception e){ out.println("NG"); } } private static int check(int i){ if(0<=i&&i<=12345){return 1;} else{return 0;} } }