結果
| 問題 | No.546 オンリー・ワン | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-07-17 18:34:26 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 115 bytes | 
| コンパイル時間 | 35 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-10-08 07:03:07 | 
| 合計ジャッジ時間 | 1,476 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 3 | 
| other | AC * 2 WA * 5 | 
コンパイルメッセージ
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}
            
            
            
        