結果

問題 No.445 得点
ユーザー hamray
提出日時 2018-02-01 12:53:55
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 63,736 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 03:52:28
合計ジャッジ時間 1,258 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
int N, K;
int main(){
    cin >> N >> K;
    int d = (0.8+0.2*K)*10;
    if((N*500)%d == 0) cout << 50*N + (50 * N) / (0.8 + 0.2 * K) << endl;
    else cout << 50*N + floor((50 * N) / (0.8 + 0.2 * K)) << endl;
    return 0;
}
        
0