結果
| 問題 |
No.926 休日の平均
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-17 17:02:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 138 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 26,624 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-17 17:02:55 |
| 合計ジャッジ時間 | 1,528 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%lf%lf%lf",&year, &week, &off);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void){
double year, week, off;
scanf("%lf%lf%lf",&year, &week, &off);
printf("%f",(year / week) * off);
}
sasa