結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-11-27 20:37:55 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-27 12:18:21 |
合計ジャッジ時間 | 2,243 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 WA * 3 |
コンパイルメッセージ
Main.rb:4: warning: character class has duplicated range: /[a-zA-z]/ Main.rb:8: warning: `elsif' at the end of line without an expression Syntax OK
ソースコード
a = gets b = gets if a =~ /[a-zA-z]/ or b =~ /[a-zA-Z]/ puts "NG" elsif a =~ /^0{2,}?/ or b =~ /^0{2,}?/ puts "NG" elsif a = a.to_i b = a.to_i if a > 12345 or b > 12345 puts "NG" else puts "OK" end end