結果

問題 No.1272 珍しい級数
ユーザー kaede2020
提出日時 2020-10-31 08:22:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 1,518 ms
コンパイル使用メモリ 166,420 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-22 04:42:48
合計ジャッジ時間 2,910 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)

int main(){
  double k;
  cin>>k;
  double ans=0;
  for (int i=1;i<=10;i++)ans+=(double)sin(k*i)/pow(i,i);
  cout<<fixed<<setprecision(12)<<ans<<endl;
  return 0;
}
0