結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-11-27 20:38:48 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 141 bytes |
コンパイル時間 | 37 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-27 12:18:23 |
合計ジャッジ時間 | 2,236 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 puts "OK" end