結果
問題 | No.197 手品 |
ユーザー |
![]() |
提出日時 | 2017-03-03 13:26:26 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 103 bytes |
コンパイル時間 | 44 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-27 13:40:28 |
合計ジャッジ時間 | 5,264 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 39 WA * 4 |
コンパイルメッセージ
Main.rb:3: warning: `:' after local variable or literal is interpreted as binary operator Main.rb:3: warning: even though it seems like symbol literal Syntax OK
ソースコード
b,n,a=$<.read.split n=n.to_i puts ((b.count(?o)==a.count(?o))?n<1?b==a: n<2? 1 :1:p)?:FAILURE:'SUCCESS'