結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
mban
|
| 提出日時 | 2016-11-07 09:26:22 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 5,000 ms |
| + 257µs | |
| コード長 | 312 bytes |
| 記録 | |
| コンパイル時間 | 432 ms |
| コンパイル使用メモリ | 102,784 KB |
| 実行使用メモリ | 18,560 KB |
| 最終ジャッジ日時 | 2026-08-16 08:50:22 |
| 合計ジャッジ時間 | 3,096 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
class Magatro
{
static void Main() {
int d, p;
string[]s= Console.ReadLine().Split(' ');
d = int.Parse(s[0]);
p = int.Parse(s[1]);
int ans = d * (100 + p) / 100;
Console.WriteLine(ans);
}
}
mban