結果

問題 No.169 何分かかるの!?
ユーザー fujitafujita
提出日時 2023-05-08 14:20:44
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 529 bytes
コンパイル時間 6,644 ms
コンパイル使用メモリ 167,480 KB
実行使用メモリ 184,656 KB
最終ジャッジ日時 2024-05-04 01:04:59
合計ジャッジ時間 8,612 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
29,056 KB
testcase_01 AC 44 ms
29,056 KB
testcase_02 AC 45 ms
29,184 KB
testcase_03 AC 45 ms
28,800 KB
testcase_04 AC 46 ms
29,040 KB
testcase_05 AC 45 ms
29,184 KB
testcase_06 AC 49 ms
28,800 KB
testcase_07 AC 48 ms
28,544 KB
testcase_08 AC 48 ms
29,052 KB
testcase_09 AC 47 ms
28,800 KB
testcase_10 AC 46 ms
28,928 KB
testcase_11 AC 46 ms
29,056 KB
testcase_12 AC 46 ms
28,928 KB
testcase_13 AC 45 ms
29,056 KB
testcase_14 AC 44 ms
28,928 KB
testcase_15 AC 51 ms
28,800 KB
testcase_16 AC 44 ms
28,928 KB
testcase_17 AC 50 ms
28,928 KB
testcase_18 AC 51 ms
28,800 KB
testcase_19 AC 46 ms
28,928 KB
testcase_20 AC 46 ms
28,928 KB
testcase_21 AC 45 ms
28,544 KB
testcase_22 AC 47 ms
29,184 KB
testcase_23 AC 46 ms
184,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (83 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System.Collections.Generic;
using System;
using System.Drawing;
using System.Runtime.Intrinsics.X86;

namespace yukicoder
{
    class Program
    {

        static void Main(string[] args)
        {


            int K = int.Parse(Console.ReadLine());
            int S = int.Parse(Console.ReadLine());

            double n = S / (100 - K);//37
            double num = S % (100 - K);//48
            double amari = num / (100 - K);//0.5

            Console.WriteLine(Math.Floor((amari + n) * 100));
        }
    }
   
}
0