結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー fal_rndfal_rnd
提出日時 2016-11-18 22:41:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 2,312 ms
コンパイル使用メモリ 74,576 KB
実行使用メモリ 41,692 KB
最終ジャッジ日時 2024-05-04 17:55:14
合計ジャッジ時間 4,196 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
41,252 KB
testcase_01 AC 105 ms
41,468 KB
testcase_02 AC 106 ms
41,236 KB
testcase_03 WA -
testcase_04 AC 103 ms
41,356 KB
testcase_05 AC 103 ms
41,676 KB
testcase_06 AC 102 ms
41,264 KB
testcase_07 AC 96 ms
41,352 KB
testcase_08 AC 107 ms
41,012 KB
testcase_09 AC 105 ms
39,900 KB
testcase_10 AC 105 ms
41,608 KB
testcase_11 AC 96 ms
41,336 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

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.matches("[1-9][0-9]*")) {
			return Integer.parseInt(s)<=12345;
		}
		return false;
	}
}
0