結果
問題 | No.2940 Sigma Sigma Div Floor Problem |
ユーザー |
|
提出日時 | 2024-10-23 19:05:13 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 41 ms / 6,000 ms |
コード長 | 374 bytes |
コンパイル時間 | 3,140 ms |
コンパイル使用メモリ | 249,448 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-23 19:05:19 |
合計ジャッジ時間 | 5,221 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 29 RE * 1 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/math>#include <atcoder/modint>using namespace atcoder;using namespace std;using ll = long long;using mint = modint998244353;int main() {ios::sync_with_stdio(false);cin.tie(nullptr);ll N;cin >> N;mint ans = 0;for(ll i = 1; i <= N; i++) { ans += floor_sum(N + 1, i, 1, 0); }cout << ans.val() << "\n";}