結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-07 23:51:32 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 645 ms / 2,000 ms |
| コード長 | 78 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 20,864 KB |
| 最終ジャッジ日時 | 2024-06-26 11:09:42 |
| 合計ジャッジ時間 | 4,742 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
Main.rb:1: warning: `:' after local variable or literal is interpreted as binary operator Main.rb:1: warning: even though it seems like symbol literal Syntax OK
ソースコード
a=gets.count('o');i=$_.size;$_.chop.chars.map{|c|p 1e2*a/i-=1;a-=c=='o' ?1 :0}