結果
| 問題 | No.72 そろばん Med | 
| コンテスト | |
| ユーザー |  kmjp | 
| 提出日時 | 2014-11-18 23:28:14 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 220 bytes | 
| コンパイル時間 | 960 ms | 
| コンパイル使用メモリ | 6,952 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2025-01-02 18:55:09 | 
| 合計ジャッジ時間 | 2,205 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 24 | 
ソースコード
import sys import math N=input() print N L=int(math.sqrt(N)-10) if L<1: L=1 R=int(math.sqrt(N)+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
