結果
問題 | No.278 連続する整数の和(2) |
ユーザー |
![]() |
提出日時 | 2017-03-07 15:16:45 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 83 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-23 17:03:47 |
合計ジャッジ時間 | 2,453 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 18 |
コンパイルメッセージ
Main.rb:1: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
ruby -prprime n=$_.to_i;s=1;(n>>1-n%2).prime_division.map{|a,b|$_=s*=~-a**-~b/a-=1}