結果
| 問題 |
No.560 ふしぎなナップサック
|
| コンテスト | |
| ユーザー |
tecchaxn
|
| 提出日時 | 2017-08-25 23:32:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 165 bytes |
| コンパイル時間 | 499 ms |
| コンパイル使用メモリ | 54,032 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 16:13:30 |
| 合計ジャッジ時間 | 1,160 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%lf%lf",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
double a,b;
scanf("%lf%lf",&a,&b);
printf("%.20lf\n",(a*3+b)/3);
return 0;
}
tecchaxn