結果

問題 No.169 何分かかるの!?
ユーザー No
提出日時 2015-04-19 09:30:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 1,000 ms
コード長 592 bytes
コンパイル時間 3,531 ms
コンパイル使用メモリ 108,484 KB
実行使用メモリ 18,944 KB
最終ジャッジ日時 2024-07-04 17:40:06
合計ジャッジ時間 5,123 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Programming
{
    class Program
    {
        static void Main(string[] args)
        {
            double K = double.Parse(Console.ReadLine());  //現在%
            double S = double.Parse(Console.ReadLine());  //残り(分)

            //1%あたりにかかる時間
            double m = S / (100 - K);
            
            //100%の場合にかかる時間
            m = m * 100;

            Console.WriteLine(Math.Floor(m));
        }
    }
}
0