Submission #32606
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #include<iostream> #include<algorithm> #include<string> #include<vector> #include<queue> #include<map> #include<set> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> using namespace std; int main(){ ios_base::sync_with_stdio( false ); long long n; long long i; int ans = 0; cin >> n; for (i = 1; i * i < n; i++){ if (n % i == 0){ ans++; } } ans *= 2; if (i * i == n)ans++; cout << ans << endl; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0567 - 長方形 |
ユーザー名 | Xyca. |
投稿日時 | 2018-04-12 01:03:18 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 510 Byte |
最大実行時間 | 70 ms |
最大メモリ使用量 | 696 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
00.in | AC | 70 ms | 608 KB |
1
|
01.in | AC | 27 ms | 696 KB |
1
|
02.in | AC | 31 ms | 656 KB |
1
|
03.in | AC | 30 ms | 612 KB |
1
|
04.in | AC | 24 ms | 572 KB |
1
|
05.in | AC | 31 ms | 528 KB |
1
|
06.in | AC | 21 ms | 484 KB |
1
|