結果
| 問題 | No.2645 Sum of Divisors? |
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2024-02-11 11:03:10 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 1,240 ms |
| コンパイル使用メモリ | 208,684 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-03 15:08:30 |
| 合計ジャッジ時間 | 5,434 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | -- * 32 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
double ans = 0;
for (int i=1; i<=n; i++){
for (int j=i; j<=n; j+=i){
ans += (double)1 / j;
}
}
cout << fixed << setprecision(15);
cout << ans << '\n';
}
shobonvip