結果
| 問題 |
No.2880 Max Sigma Mod
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-09-23 01:08:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 82,412 KB |
| 実行使用メモリ | 60,708 KB |
| 最終ジャッジ日時 | 2024-09-23 01:09:37 |
| 合計ジャッジ時間 | 45,934 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 WA * 20 |
ソースコード
import sys
input = sys.stdin.readline
N,M=map(int,input().split())
def calc(x):
score=0
for i in range(1,M+1):
score+=x%i
return score
ANS=0
for i in range(N-1000,N+1):
if i<=0:
pass
else:
ANS=max(ANS,calc(i))
print(ANS)
titia