結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-04-09 16:26:48 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 402 bytes | 
| コンパイル時間 | 2,597 ms | 
| コンパイル使用メモリ | 65,532 KB | 
| 最終ジャッジ日時 | 2025-01-09 15:28:22 | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 13 | 
ソースコード
#include <iostream>
using lint = long long;
void solve() {
    lint n;
    std::cin >> n;
    int ans = 0;
    for (lint p = 1; p * p <= n; ++p) {
        if (n % p != 0) continue;
        ++ans;
        if (n / p <= p) continue;
        ++ans;
    }
    std::cout << ans << std::endl;
}
int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    solve();
    return 0;
}
            
            
            
        