結果
問題 | No.72 そろばん Med |
ユーザー |
![]() |
提出日時 | 2017-01-26 16:45:45 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 90 ms / 5,000 ms |
コード長 | 87 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-21 11:59:44 |
合計ジャッジ時間 | 3,198 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 string literal Syntax OK
ソースコード
# Here your code ! n = gets.to_i a = n / 2 b = n - a p ((a+1) * (b+1) - 1) %(10**6 + 7)