結果
問題 | No.926 休日の平均 |
ユーザー |
|
提出日時 | 2019-11-23 13:16:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 27,264 KB |
最終ジャッジ日時 | 2025-01-08 05:30:37 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:23: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | int a, b, c; scanf("%d%d%d", &a, &b, &c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(void){int a, b, c; scanf("%d%d%d", &a, &b, &c);double res = a * c; res /= b;printf("%.8lf\n", res);return 0;}