結果

問題 No.51 やる気の問題
ユーザー AdamantiteAdamantite
提出日時 2023-06-28 00:41:42
言語 C#
(.NET 8.0.203)
結果
RE  
実行時間 -
コード長 367 bytes
コンパイル時間 11,365 ms
コンパイル使用メモリ 144,480 KB
実行使用メモリ 168,276 KB
最終ジャッジ日時 2023-09-17 23:28:57
合計ジャッジ時間 13,413 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
28,052 KB
testcase_01 AC 48 ms
28,372 KB
testcase_02 AC 48 ms
28,276 KB
testcase_03 AC 48 ms
28,152 KB
testcase_04 AC 48 ms
28,304 KB
testcase_05 RE -
testcase_06 AC 50 ms
30,084 KB
testcase_07 AC 48 ms
28,384 KB
testcase_08 AC 48 ms
28,068 KB
testcase_09 RE -
testcase_10 AC 49 ms
28,164 KB
testcase_11 AC 49 ms
27,996 KB
testcase_12 AC 48 ms
30,284 KB
testcase_13 AC 48 ms
28,240 KB
testcase_14 AC 49 ms
28,124 KB
testcase_15 RE -
testcase_16 AC 49 ms
30,208 KB
testcase_17 AC 49 ms
28,028 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 49 ms
28,044 KB
testcase_21 AC 52 ms
27,952 KB
testcase_22 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 124 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;

namespace No51_MotivationIssues
{
    internal class Program
    {
        static void Main(string[] args) {
            int w = int.Parse(Console.ReadLine());
            int d = int.Parse(Console.ReadLine());
            for(int i = d; 1 < i; i--) {
                w -= w / (i * i);
            }
            Console.WriteLine(w);
        }
    }
}
0