結果
| 問題 |
No.1118 sin(x)/xの二乗和
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2021-08-17 22:20:08 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 413 bytes |
| コンパイル時間 | 3,023 ms |
| コンパイル使用メモリ | 266,088 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 22:31:31 |
| 合計ジャッジ時間 | 3,996 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 17 |
ソースコード
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
double sinc(double x){
if(x==0){
return 1;
}
else{
return pow(sin(x),2)/pow(x,2);
}
}
int main(){
double ans=2.07079632677096370230;
double x;cin>>x;
for(int i=0;i<2*pow(10,5);i++){
ans+=sinc(x+i)-sinc(i);
}
cout<<setprecision(15)<<ans<<endl;
}
vwxyz