結果

問題 No.2891 Mint
ユーザー ニックネームニックネーム
提出日時 2024-09-13 22:34:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-13 22:34:55
合計ジャッジ時間 30,425 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 30 ms
10,752 KB
testcase_02 AC 31 ms
10,752 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 WA -
testcase_05 AC 30 ms
10,880 KB
testcase_06 AC 1,731 ms
10,752 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 AC 29 ms
10,752 KB
testcase_10 AC 29 ms
10,752 KB
testcase_11 WA -
testcase_12 AC 30 ms
10,752 KB
testcase_13 AC 30 ms
10,752 KB
testcase_14 AC 30 ms
10,880 KB
testcase_15 AC 30 ms
10,752 KB
testcase_16 AC 30 ms
10,752 KB
testcase_17 AC 1,282 ms
10,880 KB
testcase_18 AC 778 ms
10,752 KB
testcase_19 AC 666 ms
10,752 KB
testcase_20 AC 1,142 ms
10,880 KB
testcase_21 AC 694 ms
10,752 KB
testcase_22 AC 1,421 ms
10,880 KB
testcase_23 AC 511 ms
10,752 KB
testcase_24 AC 1,128 ms
10,752 KB
testcase_25 AC 1,548 ms
10,752 KB
testcase_26 AC 1,513 ms
10,752 KB
testcase_27 AC 1,414 ms
10,752 KB
testcase_28 AC 1,603 ms
10,752 KB
testcase_29 AC 704 ms
10,752 KB
testcase_30 AC 1,169 ms
10,752 KB
testcase_31 AC 733 ms
10,752 KB
testcase_32 AC 1,270 ms
10,880 KB
testcase_33 AC 903 ms
10,880 KB
testcase_34 AC 992 ms
10,752 KB
testcase_35 AC 1,117 ms
10,752 KB
testcase_36 AC 1,194 ms
10,880 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 30 ms
10,752 KB
testcase_43 AC 30 ms
10,752 KB
testcase_44 AC 29 ms
10,752 KB
testcase_45 AC 30 ms
10,752 KB
testcase_46 AC 30 ms
10,752 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import isqrt
n,m = map(int,input().split())
l = isqrt(m); x = n*m
for i in range(1,l+1): x -= m//i*i
if l<n:
    for i in range(1,m//l+1): x -= (l+1+min(m//i,n))*(min(m//i,n)-l)//2
print(x%998244353)
0