結果

問題 No.56 消費税
ユーザー Maisu
提出日時 2016-12-24 12:07:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 775 ms
コンパイル使用メモリ 108,716 KB
実行使用メモリ 26,128 KB
最終ジャッジ日時 2024-12-14 17:18:12
合計ジャッジ時間 2,291 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
  public static void Main() {
    string[] input = Console.ReadLine().Split(' ');
    int D = int.Parse(input[0]);
    int P = int.Parse(input[1]);
    double tax = 0.01 * P + 1;
    Console.WriteLine((int)(D * tax));
  }
}
0