結果
問題 |
No.379 五円硬貨
|
ユーザー |
![]() |
提出日時 | 2025-03-07 13:45:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 608 ms |
コンパイル使用メモリ | 27,008 KB |
実行使用メモリ | 8,604 KB |
最終ジャッジ日時 | 2025-03-07 13:45:55 |
合計ジャッジ時間 | 1,835 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%lf%lf",&money,&gas,&volume); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int money; double gas,volume; scanf("%d%lf%lf",&money,&gas,&volume); double allgas = (money / 5) * gas; double ans = allgas / volume; printf("%.20lf\n",ans); }