結果
| 問題 |
No.53 悪の漸化式
|
| コンテスト | |
| ユーザー |
古寺いろは
|
| 提出日時 | 2015-04-13 23:35:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 176 bytes |
| コンパイル時間 | 1,247 ms |
| コンパイル使用メモリ | 157,800 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-04 14:18:07 |
| 合計ジャッジ時間 | 2,192 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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("%.30f\n", ans);
| ~~~~^ ~~~
| | |
| | long double
| double
| %.30Lf
ソースコード
#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("%.30f\n", ans);
}
古寺いろは