結果
| 問題 |
No.881 sin(x)/xの和
|
| コンテスト | |
| ユーザー |
ganmodokix
|
| 提出日時 | 2019-09-29 11:27:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 69,620 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 08:07:02 |
| 合計ジャッジ時間 | 1,296 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int n; cin >> n;
double ans = 0;
double x, a;
for (int i = n; i--;) {
cin >> x >> a;
ans += a;
}
cout << fixed << setprecision(20) << ans * 3.14159265358979323846264338327950288 << "\n";
}
ganmodokix