結果

問題 No.881 sin(x)/xの和
ユーザー QCFium
提出日時 2019-09-03 14:44:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 31,104 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 08:01:08
合計ジャッジ時間 916 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main() {
	int n;
	scanf("%d", &n);
	double res = 0, a;
	for (int i = 0; i < n; i++) scanf("%*lf%lf", &a), res += a;
	printf("%.14f\n", res * 3.14159265358979);
	return 0;
}
0