結果
| 問題 |
No.178 美しいWhitespace (1)
|
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-11-06 00:47:29 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 89 ms / 2,000 ms |
| コード長 | 103 bytes |
| コンパイル時間 | 396 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-09-13 12:54:30 |
| 合計ジャッジ時間 | 3,355 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 21 |
コンパイルメッセージ
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
ソースコード
gets
l=$<.map{|i|a,b=i.split;a.to_i+4*b.to_i}.sort
s=0;l.map{|j|s>-1&&(d=l[-1]-j)%2<1?s+=d/2 :s=-1}
p s
siman