結果

問題 No.56 消費税
ユーザー nanae
提出日時 2017-03-01 23:36:44
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 769 ms
コンパイル使用メモリ 100,484 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 07:08:50
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio;
import std.string, std.conv, std.array, std.algorithm;
import std.uni;

void main(){
    // Input
    auto line = readln.split.to!(int[]);
    int D = line[0], P = line[1];

    // Process
    int ans = D * (100 + P) / 100;

    // Output
    writeln(ans);
}
0