結果
| 問題 | No.3689 LCM Sum (Easy Version) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-06 18:03:05 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 32 ms / 2,000 ms |
| + 546µs | |
| コード長 | 406 bytes |
| 記録 | |
| コンパイル時間 | 1,968 ms |
| コンパイル使用メモリ | 331,032 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-06 18:03:16 |
| 合計ジャッジ時間 | 3,559 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int n, m;
cin >> n >> m;
ll ans = 0;
for (int i = 1; i <= n; i++)
for (int j = 1; j <= m; j++)
ans += lcm(i, j);
ans %= 998244353;
cout << ans << endl;
return 0;
}