結果
| 問題 |
No.881 sin(x)/xの和
|
| コンテスト | |
| ユーザー |
pockyny
|
| 提出日時 | 2019-09-07 15:49:54 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 239 bytes |
| コンパイル時間 | 975 ms |
| コンパイル使用メモリ | 76,888 KB |
| 最終ジャッジ日時 | 2025-01-07 17:10:20 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
long double ans = 0;
int main(){
cout.precision(20);
int i,n;
cin >> n;
for(i=0;i<n;i++){
long double x,a; cin >> x >> a;
ans += a;
}
ans *= M_PI;
cout << ans << endl;
}
pockyny