結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-12-28 18:24:13 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 347 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-15 07:57:02 |
合計ジャッジ時間 | 2,328 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 WA * 5 RE * 1 |
コンパイルメッセージ
Main.rb:4: warning: mismatched indentations at 'rescue' with 'def' at 1 Syntax OK
ソースコード
def isInt?(str) Integer(str) true rescue ArgumentError false end 1.upto(2) do |i| str = STDIN.gets if !(isInt?(str) && (Integer(str) == 0)..(Integer(str) == 12345)) puts "NG" break end if i == 2 puts "OK" end end