結果
問題 | No.72 そろばん Med |
ユーザー |
![]() |
提出日時 | 2014-11-19 00:28:28 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 94 ms / 5,000 ms |
コード長 | 71 bytes |
コンパイル時間 | 290 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-11-21 11:32:40 |
合計ジャッジ時間 | 3,384 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
Main.rb:5: warning: `+' after local variable or literal is interpreted as binary operator Main.rb:5: warning: even though it seems like unary operator Main.rb:3: warning: assigned but unused variable - x Syntax OK
ソースコード
n = gets.to_i x = (n/2) puts ((n/2 + 1)*(n- n/2 +1) -1)%1000007