結果

問題 No.1514 Squared Matching
ユーザー vjudge1
提出日時 2025-07-07 11:25:05
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 3,492 ms
コンパイル使用メモリ 274,424 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-07-07 11:25:14
合計ジャッジ時間 8,143 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    long long ans=0;
    cin>>n;
    for(int i=1; i<=n; i++){
        long long a=sqrt(n/i);
        ans+=a*(a-1)+1;
    }
    cout<<ans;
    return 0;
}
0