結果

問題 No.567 コンプリート
ユーザー kotatsugame
提出日時 2017-09-08 23:48:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 210 bytes
コンパイル時間 610 ms
コンパイル使用メモリ 73,728 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-07 10:28:03
合計ジャッジ時間 1,261 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
double n;
main()
{
	cin>>n;
	cout<<fixed<<setprecision(9)<<(pow(6,n)-6*pow(5,n)+15*pow(4,n)-20*pow(3,n)+15*pow(2,n)-6)/pow(6,n)<<endl;
}
0