結果
問題 |
No.53 悪の漸化式
|
ユーザー |
![]() |
提出日時 | 2015-04-13 23:37:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 1,235 ms |
コンパイル使用メモリ | 157,652 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 14:18:44 |
合計ジャッジ時間 | 1,935 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 17 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:12:21: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] 12 | printf("%.14f\n", ans); | ~~~~^ ~~~ | | | | | long double | double | %.14Lf
ソースコード
#include "bits/stdc++.h" using namespace std; int main(){ int N; cin >> N; long double ans = 4; for (int i = 0; i < N; i++) { ans *= 0.75; } printf("%.14f\n", ans); cin >> ans; }