結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
yokoshabel
|
| 提出日時 | 2016-12-30 22:52:31 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 532 bytes |
| コンパイル時間 | 4,109 ms |
| コンパイル使用メモリ | 78,276 KB |
| 実行使用メモリ | 46,480 KB |
| 最終ジャッジ日時 | 2024-12-16 04:16:26 |
| 合計ジャッジ時間 | 6,370 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 2 |
ソースコード
import java.util.*;
import java.lang.String;
public class No446{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String a=sc.nextLine();
String b=sc.nextLine();
if(check(a)==true&&check(b)==true){
System.out.println("OK");
}else{
System.out.println("NG");
}
}
private static boolean check(String S){
if(S.length()<0||S.length()>5){return false;}
if(S.matches("^[0-9]+$")==false){return false;}
int n=Integer.parseInt(S);
if(n<0||12345<n){return false;}
return true;
}
}
yokoshabel