結果

問題 No.2880 Max Sigma Mod
ユーザー titiatitia
提出日時 2024-09-23 01:08:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 59,544 KB
最終ジャッジ日時 2024-09-23 01:08:25
合計ジャッジ時間 7,949 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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-100,N+1):
    if i<=0:
        pass
    else:
        ANS=max(ANS,calc(i))

print(ANS)
0