結果
問題 | No.2940 Sigma Sigma Div Floor Problem |
ユーザー |
![]() |
提出日時 | 2024-10-18 21:46:21 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 36 ms / 6,000 ms |
コード長 | 409 bytes |
コンパイル時間 | 2,793 ms |
コンパイル使用メモリ | 250,460 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-18 22:36:12 |
合計ジャッジ時間 | 5,385 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 29 RE * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; const int INF = 1e9 + 10; const ll INFL = 4e18; #include <atcoder/math> #include <atcoder/modint> using mint = atcoder::modint998244353; int main() { ll N; cin >> N; mint ans = 0; for (int j = 1; j <= N; j++) { // i:j~N ans += atcoder::floor_sum(N - j + 1, j, 1, j); } cout << ans.val() << endl; }