結果
| 問題 | No.72 そろばん Med |
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2014-11-19 00:28:28 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 52 ms / 5,000 ms |
| + 45µs | |
| コード長 | 71 bytes |
| 記録 | |
| コンパイル時間 | 8 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,592 KB |
| 最終ジャッジ日時 | 2026-09-27 12:08:51 |
| 合計ジャッジ時間 | 3,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
Main.rb:5: warning: '+' after local variable or literal is interpreted as binary operator 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
koyumeishi