結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー | basie23 |
提出日時 | 2016-12-11 16:24:53 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 523 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 11,432 KB |
実行使用メモリ | 15,336 KB |
最終ジャッジ日時 | 2023-08-19 11:22:54 |
合計ジャッジ時間 | 2,744 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
15,080 KB |
testcase_01 | AC | 72 ms
15,260 KB |
testcase_02 | AC | 73 ms
15,012 KB |
testcase_03 | AC | 70 ms
15,312 KB |
testcase_04 | AC | 78 ms
15,332 KB |
testcase_05 | AC | 68 ms
15,256 KB |
testcase_06 | WA | - |
testcase_07 | AC | 73 ms
15,320 KB |
testcase_08 | WA | - |
testcase_09 | AC | 73 ms
15,228 KB |
testcase_10 | AC | 72 ms
15,056 KB |
testcase_11 | AC | 68 ms
15,144 KB |
testcase_12 | AC | 68 ms
15,336 KB |
testcase_13 | AC | 69 ms
15,140 KB |
testcase_14 | AC | 67 ms
15,080 KB |
testcase_15 | AC | 72 ms
15,224 KB |
testcase_16 | AC | 70 ms
15,160 KB |
コンパイルメッセージ
Syntax OK
ソースコード
a = gets.chomp b = gets.chomp def check_has_str(str) str.each_char do |c| if c !~ /\d+/ puts 'NG' exit end end end def check_zero_digit(str) if str.length < 2 return end str.each_char do |c| if c == '0' puts 'NG' exit else return end end end def check_over_12345(int) if int > 12345 puts 'MG' exit end end check_has_str(a) check_has_str(b) check_zero_digit(a) check_zero_digit(b) check_over_12345(a.to_i) check_over_12345(b.to_i) puts 'OK'