結果
問題 |
No.379 五円硬貨
|
ユーザー |
![]() |
提出日時 | 2018-04-09 23:10:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 365 bytes |
コンパイル時間 | 652 ms |
コンパイル使用メモリ | 60,520 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 20:50:22 |
合計ジャッジ時間 | 1,517 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
コンパイルメッセージ
main.cpp: In function ‘void solve()’: main.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 22 | scanf("%lld %lld %lld", &n, &g, &v); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <algorithm> #include <vector> #include <deque> #include <string> #include <iostream> using namespace std; using ll = long long; void solve(); int main() { solve(); #ifdef DBG while (true); #endif } //379 void solve() { ll n, g, v; scanf("%lld %lld %lld", &n, &g, &v); g *= n / 5; printf("%.12lf\n", ((double)g) / ((double)v)); }