結果

問題 No.379 五円硬貨
ユーザー r2en_
提出日時 2017-07-11 20:03:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 283 bytes
コンパイル時間 603 ms
コンパイル使用メモリ 68,520 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-07 15:06:29
合計ジャッジ時間 1,278 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)

int main(){
    double n; cin >> n;
    double g; cin >> g;
    double v; cin >> v;
    double res = 0;
    res = floor(n / 5) * g / v;
    printf("%.12f\n",res);
    return 0;
}
0