結果
問題 |
No.72 そろばん Med
|
ユーザー |
![]() |
提出日時 | 2014-11-18 23:29:23 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 192 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 7,168 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-02 18:55:16 |
合計ジャッジ時間 | 1,437 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 24 |
ソースコード
import sys import math N=input() print N L=N/2-10 if L<1: L=1 R=N/2+10 if R>=N: R=N-1 ma=0 for i in range(L,R+1): ma=max(ma,(N-i+1)*(i+1)-1); print ma%1000007