結果

問題 No.2880 Max Sigma Mod
コンテスト
ユーザー t98slider
提出日時 2024-09-08 12:39:04
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 2,183 ms
コンパイル使用メモリ 191,572 KB
最終ジャッジ日時 2025-02-24 05:21:05
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, m;
    cin >> n >> m;
    ll ans = 0;
    for(int i = 1; i <= m; i++){
        ans += n % i;
    }
    cout << ans << '\n';
}
0