結果

問題 No.51 やる気の問題
ユーザー うわばみうわばみ
提出日時 2020-04-29 20:03:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 1,844 ms
コンパイル使用メモリ 60,920 KB
実行使用メモリ 22,796 KB
最終ジャッジ日時 2023-08-19 20:59:40
合計ジャッジ時間 4,313 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,628 KB
testcase_01 AC 53 ms
20,692 KB
testcase_02 AC 54 ms
22,796 KB
testcase_03 AC 53 ms
20,660 KB
testcase_04 AC 54 ms
20,624 KB
testcase_05 AC 55 ms
20,716 KB
testcase_06 AC 54 ms
22,696 KB
testcase_07 AC 55 ms
20,820 KB
testcase_08 AC 54 ms
20,688 KB
testcase_09 AC 54 ms
20,708 KB
testcase_10 AC 53 ms
18,604 KB
testcase_11 AC 54 ms
20,612 KB
testcase_12 AC 54 ms
22,596 KB
testcase_13 AC 54 ms
20,724 KB
testcase_14 AC 55 ms
20,704 KB
testcase_15 AC 55 ms
20,648 KB
testcase_16 AC 54 ms
20,652 KB
testcase_17 AC 54 ms
20,696 KB
testcase_18 AC 55 ms
18,632 KB
testcase_19 AC 55 ms
20,548 KB
testcase_20 AC 53 ms
20,776 KB
testcase_21 AC 53 ms
20,620 KB
testcase_22 AC 55 ms
20,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Program
{
    static void Main()
    {
        long w = int.Parse(Console.ReadLine());
        long d = int.Parse(Console.ReadLine());
        long i = d;
        for(; 1 < i; i--)
        {
            w -= w / (i * i);
        }
        Console.WriteLine($"{w}");
    }
}
0