結果
| 問題 | No.2891 Mint |
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2024-09-13 22:38:18 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 893 ms / 2,000 ms |
| + 815µs | |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2026-11-05 01:10:37 |
| 合計ジャッジ時間 | 16,001 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 55 |
ソースコード
from math import isqrt
n,m = map(int,input().split())
l = isqrt(m); x = n*m
for i in range(1,min(l,n)+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)
ニックネーム