結果
| 問題 |
No.197 手品
|
| コンテスト | |
| ユーザー |
mmmppp
|
| 提出日時 | 2017-03-03 13:25:30 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 103 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-27 13:40:20 |
| 合計ジャッジ時間 | 5,955 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 4 WA * 39 |
コンパイルメッセージ
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)?:SUCCESS:'FAILURE'
mmmppp