結果
| 問題 |
No.467 隠されていたゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-17 01:35:48 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 2,000 ms |
| コード長 | 97 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-10-04 16:14:22 |
| 合計ジャッジ時間 | 2,913 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
| 外部呼び出し有り |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
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 Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n,*d,x,y=`dd`.split.map{|e|e.to_i.abs}
x=[x,y].max
p x==0?0:d.index(x)?1:x>(m=d.max)?(x+m-1)/m :2