結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-11 01:22:47 |
| 言語 | Java (openjdk 27.0.1.0.3 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 154 ms / 2,000 ms |
| + 232µs | |
| コード長 | 439 bytes |
| 記録 | |
| コンパイル時間 | 1,851 ms |
| コンパイル使用メモリ | 93,520 KB |
| 実行使用メモリ | 50,768 KB |
| 最終ジャッジ日時 | 2026-10-19 13:05:02 |
| 合計ジャッジ時間 | 6,744 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
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