結果
| 問題 | No.546 オンリー・ワン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-17 18:33:59 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 114 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-10-08 07:02:58 |
| 合計ジャッジ時間 | 2,265 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 7 |
コンパイルメッセージ
Main.rb:3: warning: `**' after local variable or literal is interpreted as binary operator Main.rb:3: warning: even though it seems like argument prefix Syntax OK
ソースコード
n,l,h,*z=`dd`.split.map &:to_i
p 0..n .reduce{|r,i|z.combination(i){|v|e=v.reduce :lcm
r-=-1 **i*i*(h/e-~-l/e)};r}