結果
| 問題 |
No.242 ビンゴゲーム
|
| コンテスト | |
| ユーザー |
nanasili
|
| 提出日時 | 2015-07-28 13:03:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 160 bytes |
| コンパイル時間 | 370 ms |
| コンパイル使用メモリ | 55,100 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-16 04:43:09 |
| 合計ジャッジ時間 | 877 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lf", &n);
| ~~~~~^~~~~~~~~~~
ソースコード
#include <iostream>
using namespace std;
int main() {
double n;
scanf("%lf", &n);
printf("%.12lf\n", max(n*(n*(n*(n*(n-10)+35)-50)+24)/715231440.,0.));
}
nanasili