結果
問題 | No.2480 Sequence Sum |
ユーザー |
![]() |
提出日時 | 2023-09-22 22:30:23 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 500 ms |
コード長 | 218 bytes |
コンパイル時間 | 1,329 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-26 14:39:47 |
合計ジャッジ時間 | 1,983 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include<stdio.h>int main(){long long int n;scanf("%lld", &n);long long int ans = n, i;for (i = 1; i * i < n; i++)if (n % i == 0)ans -= 2;if (i * i == n)ans--;printf("%lld\n", ans);return 0;}