結果
| 問題 |
No.56 消費税
|
| ユーザー |
santa
|
| 提出日時 | 2020-07-25 21:18:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 1,134 ms |
| コンパイル使用メモリ | 111,880 KB |
| 実行使用メモリ | 19,072 KB |
| 最終ジャッジ日時 | 2024-06-27 16:07:53 |
| 合計ジャッジ時間 | 2,875 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Linq;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
var line1 = Console.ReadLine().Split(' ').Select(c => int.Parse(c)).ToArray();
var d = line1[0];
var p = line1[1];
int result = d + d * p / 100;
//結果を表示
Console.WriteLine(result);
}
}
}
santa