結果

問題 No.51 やる気の問題
ユーザー mrc1031mrc1031
提出日時 2016-10-11 10:03:45
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 350 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 99,940 KB
実行使用メモリ 22,888 KB
最終ジャッジ日時 2023-08-14 06:29:39
合計ジャッジ時間 4,543 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
18,764 KB
testcase_01 AC 55 ms
22,724 KB
testcase_02 AC 54 ms
22,632 KB
testcase_03 AC 54 ms
22,756 KB
testcase_04 AC 54 ms
22,888 KB
testcase_05 RE -
testcase_06 AC 54 ms
20,668 KB
testcase_07 AC 55 ms
20,672 KB
testcase_08 AC 55 ms
22,672 KB
testcase_09 RE -
testcase_10 AC 55 ms
20,796 KB
testcase_11 AC 54 ms
20,668 KB
testcase_12 AC 55 ms
20,712 KB
testcase_13 AC 55 ms
22,724 KB
testcase_14 AC 56 ms
20,624 KB
testcase_15 RE -
testcase_16 AC 55 ms
20,644 KB
testcase_17 AC 54 ms
20,760 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 55 ms
22,820 KB
testcase_21 AC 54 ms
20,720 KB
testcase_22 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

class Program
{
    static void Main(string[] args)
    {
        // No.51 やる気の問題

        int W = int.Parse(Console.ReadLine());
        int D = int.Parse(Console.ReadLine());

        for (int i = D; i > 1; i--)
        {
            W -= W / (i * i);
        }

        Console.WriteLine(W);
    }
}

0