結果

問題 No.169 何分かかるの!?
ユーザー fujitafujita
提出日時 2023-05-08 14:20:44
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 529 bytes
コンパイル時間 6,866 ms
コンパイル使用メモリ 147,504 KB
実行使用メモリ 165,016 KB
最終ジャッジ日時 2023-08-16 17:15:46
合計ジャッジ時間 9,080 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
28,072 KB
testcase_01 AC 38 ms
28,224 KB
testcase_02 AC 39 ms
27,932 KB
testcase_03 AC 38 ms
27,860 KB
testcase_04 AC 38 ms
27,884 KB
testcase_05 AC 41 ms
27,872 KB
testcase_06 AC 40 ms
28,100 KB
testcase_07 AC 40 ms
29,776 KB
testcase_08 AC 39 ms
27,848 KB
testcase_09 AC 38 ms
27,920 KB
testcase_10 AC 39 ms
28,140 KB
testcase_11 AC 41 ms
28,060 KB
testcase_12 AC 39 ms
27,736 KB
testcase_13 AC 40 ms
30,060 KB
testcase_14 AC 39 ms
28,056 KB
testcase_15 AC 42 ms
27,868 KB
testcase_16 AC 41 ms
28,052 KB
testcase_17 AC 40 ms
30,132 KB
testcase_18 AC 38 ms
28,164 KB
testcase_19 AC 38 ms
28,052 KB
testcase_20 AC 39 ms
28,056 KB
testcase_21 AC 39 ms
27,852 KB
testcase_22 AC 41 ms
29,996 KB
testcase_23 AC 40 ms
165,016 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 120 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.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