結果

問題 No.169 何分かかるの!?
ユーザー NoNo
提出日時 2015-04-19 09:30:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 1,000 ms
コード長 592 bytes
コンパイル時間 2,549 ms
コンパイル使用メモリ 101,492 KB
実行使用メモリ 24,740 KB
最終ジャッジ日時 2023-09-18 00:30:36
合計ジャッジ時間 5,387 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
22,712 KB
testcase_01 AC 63 ms
24,728 KB
testcase_02 AC 63 ms
22,624 KB
testcase_03 AC 63 ms
22,568 KB
testcase_04 AC 62 ms
22,764 KB
testcase_05 AC 63 ms
22,708 KB
testcase_06 AC 63 ms
24,740 KB
testcase_07 AC 62 ms
22,532 KB
testcase_08 AC 62 ms
24,572 KB
testcase_09 AC 62 ms
22,528 KB
testcase_10 AC 63 ms
24,712 KB
testcase_11 AC 63 ms
22,596 KB
testcase_12 AC 63 ms
24,548 KB
testcase_13 AC 63 ms
24,600 KB
testcase_14 AC 63 ms
20,708 KB
testcase_15 AC 62 ms
22,532 KB
testcase_16 AC 62 ms
24,512 KB
testcase_17 AC 62 ms
24,684 KB
testcase_18 AC 63 ms
22,624 KB
testcase_19 AC 62 ms
24,660 KB
testcase_20 AC 63 ms
22,644 KB
testcase_21 AC 62 ms
20,684 KB
testcase_22 AC 62 ms
24,716 KB
testcase_23 AC 61 ms
22,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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