結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー WagiHOHWagiHOH
提出日時 2017-01-11 17:22:58
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 11,312 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-08-23 08:30:02
合計ジャッジ時間 2,917 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,184 KB
testcase_01 AC 85 ms
15,148 KB
testcase_02 AC 86 ms
15,220 KB
testcase_03 AC 84 ms
15,056 KB
testcase_04 AC 83 ms
15,160 KB
testcase_05 AC 84 ms
15,160 KB
testcase_06 AC 83 ms
15,156 KB
testcase_07 AC 84 ms
15,216 KB
testcase_08 AC 84 ms
15,076 KB
testcase_09 AC 84 ms
15,068 KB
testcase_10 AC 83 ms
15,236 KB
testcase_11 AC 83 ms
15,140 KB
testcase_12 AC 85 ms
15,096 KB
testcase_13 WA -
testcase_14 AC 85 ms
15,084 KB
testcase_15 AC 84 ms
15,092 KB
testcase_16 AC 83 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l, r = gets, gets
if ([l, r].all? {|x| x.match(/(^0$)|(^[1-9]\d*$)/) } and l.to_i + r.to_i <= 12345)
    puts 'OK'
else
    puts 'NG'
end
0