結果
| 問題 |
No.2480 Sequence Sum
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-03 13:15:05 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 1,473 ms |
| コンパイル使用メモリ | 165,196 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 18:36:14 |
| 合計ジャッジ時間 | 2,069 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n, ans;
cin >> n;
ans = n;
for(int i = 1; i * i <= n; i++){
if(n % i == 0){
ans--;
ans -= (n == i * i);
}
}
cout << ans << '\n';
}