結果
| 問題 |
No.8001 確率論ってこういうものですよね
|
| コンテスト | |
| ユーザー |
kyuridenamida
|
| 提出日時 | 2014-12-25 23:47:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 1,203 ms |
| コンパイル使用メモリ | 157,284 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 23:35:20 |
| 合計ジャッジ時間 | 1,716 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:11:22: warning: format ‘%Lf’ expects argument of type ‘long double’, but argument 2 has type ‘double’ [-Wformat=]
11 | printf("%.16Lf %.16Lf\n",1-Y,1-Y);
| ~~~~~^ ~~~
| | |
| long double double
| %.16f
main.cpp:11:29: warning: format ‘%Lf’ expects argument of type ‘long double’, but argument 3 has type ‘double’ [-Wformat=]
11 | printf("%.16Lf %.16Lf\n",1-Y,1-Y);
| ~~~~~^ ~~~
| | |
| | double
| long double
| %.16f
ソースコード
#include <bits/stdc++.h>
using namespace std;
/*
最大値と最小値逆にしてた!!!!!!!!!!!というのはあまり問題ではなさそう...もうだめだ
*/
int main(){
double X,Y;
cin >> X >> Y;
long double a = X;
long double b = (1-Y);
printf("%.16Lf %.16Lf\n",1-Y,1-Y);
}
kyuridenamida