結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー fal_rndfal_rnd
提出日時 2016-11-18 22:43:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 2,391 ms
コンパイル使用メモリ 75,352 KB
実行使用メモリ 41,272 KB
最終ジャッジ日時 2024-05-04 17:59:10
合計ジャッジ時間 5,276 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 126 ms
41,148 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 125 ms
41,156 KB
testcase_13 AC 125 ms
41,072 KB
testcase_14 AC 130 ms
41,044 KB
testcase_15 AC 123 ms
41,024 KB
testcase_16 AC 128 ms
41,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{
	static Scanner s = new Scanner("0 12345");
	public static void main(String[] args){
		if(check(s.next())&&check(s.next())) {
			System.out.println("OK");
		}else {
			System.out.println("NG");
		}
	}
	static boolean check(String s) {
		if(s.equals("0")||s.matches("[1-9][0-9]*")) {
			return Integer.parseInt(s)<=12345;
		}
		return false;
	}
}
0