結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2018-01-13 11:59:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 23:44:39 |
合計ジャッジ時間 | 1,800 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
#include <iostream> using namespace std; int main() { long long n; cin >> n; long long ans = 0; for (long long i = 1; i * i <= n; i++) { if(n % i == 0) { ans += i * i == n ? 1 : 2; } } cout << ans << endl; return 0; }