結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-11 01:22:47 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 2,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 4,550 ms |
| コンパイル使用メモリ | 74,384 KB |
| 実行使用メモリ | 54,476 KB |
| 最終ジャッジ日時 | 2024-11-06 21:19:35 |
| 合計ジャッジ時間 | 5,970 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
String a = sc.next();
String b = sc.next();
if (judge(a)==true && judge(b)==true) {System.out.println("OK");}
else {System.out.println("NG");}
}
static boolean judge (String s) {
boolean b = false;
for (int i=0; i<=12345; i++) {
if (s.equals(String.valueOf(i))) {b = true;}
}
return b;
}
}
Tsukasa_Type