結果
問題 | No.72 そろばん Med |
ユーザー |
![]() |
提出日時 | 2018-02-12 22:29:20 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 94 ms / 5,000 ms |
コード長 | 88 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-21 12:10:19 |
合計ジャッジ時間 | 3,366 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 string literal Syntax OK
ソースコード
n = gets.to_i d = (n/2).ceil puts ((n%1000007) + (d*n)%1000007 - (d*d)%1000007) %1000007