結果

問題 No.598 オーバーフローファンタジー
ユーザー keymoon_68keymoon_68
提出日時 2017-11-25 11:54:00
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 305 bytes
コンパイル時間 5,725 ms
コンパイル使用メモリ 103,512 KB
実行使用メモリ 25,300 KB
最終ジャッジ日時 2023-08-24 15:33:53
合計ジャッジ時間 6,875 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
21,156 KB
testcase_01 AC 54 ms
19,104 KB
testcase_02 AC 54 ms
21,156 KB
testcase_03 AC 54 ms
21,144 KB
testcase_04 AC 53 ms
20,888 KB
testcase_05 AC 54 ms
23,272 KB
testcase_06 AC 54 ms
21,140 KB
testcase_07 AC 54 ms
21,100 KB
testcase_08 AC 53 ms
19,104 KB
testcase_09 AC 54 ms
21,204 KB
testcase_10 AC 54 ms
21,224 KB
testcase_11 AC 54 ms
21,092 KB
testcase_12 AC 56 ms
25,300 KB
testcase_13 AC 55 ms
23,192 KB
testcase_14 AC 54 ms
21,096 KB
testcase_15 AC 54 ms
23,192 KB
testcase_16 AC 54 ms
23,188 KB
testcase_17 AC 54 ms
23,184 KB
testcase_18 AC 54 ms
23,192 KB
testcase_19 AC 54 ms
19,184 KB
testcase_20 AC 54 ms
21,248 KB
testcase_21 AC 54 ms
23,196 KB
testcase_22 AC 54 ms
23,192 KB
testcase_23 AC 53 ms
21,096 KB
testcase_24 AC 55 ms
23,192 KB
testcase_25 AC 55 ms
23,148 KB
testcase_26 AC 54 ms
21,228 KB
testcase_27 WA -
testcase_28 AC 55 ms
23,196 KB
testcase_29 AC 55 ms
21,144 KB
testcase_30 AC 55 ms
21,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
class P
{
    static void Main()
    {
        long N = Convert.ToInt64(Math.Pow(2, p() - 1));
        int X = p();
        int A = (X / p()) + 1;
        long B = ((N - 1 - X) / p()) + 1;
        Console.WriteLine(Math.Min(A,B));
    }
    static int p() => int.Parse(Console.ReadLine());
}
0