結果
| 問題 |
No.53 悪の漸化式
|
| コンテスト | |
| ユーザー |
btk
|
| 提出日時 | 2015-05-23 11:53:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 404 ms |
| コンパイル使用メモリ | 56,168 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 06:07:49 |
| 合計ジャッジ時間 | 963 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:23: warning: use of ‘ll’ length modifier with ‘f’ type character has either no effect or undefined behavior [-Wformat=]
10 | printf("%.11llf\n",num[n]+eps);
| ^
ソースコード
#include<iostream>
#include<stdio.h>
using namespace std;
const long double eps=1e-15;
int main(){
long double num[101]={4.0,3.0};
int n;cin>>n;
for(int i=2;i<=n;i++)
num[i]=num[i-1]*(3,0/4.0);
printf("%.11llf\n",num[n]+eps);
}
btk