結果
| 問題 |
No.101 ぐるぐる!あみだくじ!
|
| コンテスト | |
| ユーザー |
syaro
|
| 提出日時 | 2016-02-06 18:47:11 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 211 ms / 5,000 ms |
| コード長 | 107 bytes |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,928 KB |
| 最終ジャッジ日時 | 2024-12-26 06:00:46 |
| 合計ジャッジ時間 | 7,475 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 37 |
コンパイルメッセージ
Main.rb:2: warning: regex literal in condition Syntax OK
ソースコード
f=1,*1..100
eval"f[#$`],f[#$']=f[#$'],f[#$`]"if/ / while gets
p f.reduce{|x,k|a=k;x.lcm~f.index{k==a=f[a]}}
syaro