結果

問題 No.537 ユーザーID
コンテスト
ユーザー vjudge1
提出日時 2026-04-21 14:35:20
言語 C++17(clang)
(clang++ 22.1.2 + boost 1.89.0)
コンパイル:
clang++ -O2 -lm -std=c++1z -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 492 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,548 ms
コンパイル使用メモリ 172,716 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-04-21 14:35:29
合計ジャッジ時間 5,914 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<bits/stdc++.h>
using namespace std;
using LL = long long;
void solve(){
    LL n;
    cin >> n;
    LL res = 0;
    for(LL i = 1; i * i <= n; ++i){
        if(n % i == 0){
            ++res;
            if(i * i != n){
                ++res;
            }
        }
    }
    cout << res << "\n";
}
int main(){
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    #ifdef ONLINE_JUDGE
       
    #else
        
    #endif
    int T = 1;
    // cin >> T;
    while(T--)solve();
}
0