結果
| 問題 |
No.1180 無限和
|
| コンテスト | |
| ユーザー |
Re_menal2
|
| 提出日時 | 2020-10-20 11:08:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 589 ms |
| コンパイル使用メモリ | 67,968 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-21 08:18:52 |
| 合計ジャッジ時間 | 1,396 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 40 |
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int ans;
int a;
double cons;
cin >> a;
cons = (pow(M_PI, 2.0))/6;
/*ans = (-1/3)*pow(M_PI, 4.0)*pow(1/sin(M_PI/a), 2.0)*(2pow(1/tan(M_PI/a), 2.0)+pow(1/sin(M_PI/a), 2.0));*/
ans = (1/a)*pow(cons, a);
cout << ans << endl;
}
Re_menal2