結果

問題 No.598 オーバーフローファンタジー
ユーザー keymoon_68keymoon_68
提出日時 2017-11-25 11:52:07
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 331 bytes
コンパイル時間 708 ms
コンパイル使用メモリ 102,400 KB
実行使用メモリ 18,432 KB
最終ジャッジ日時 2024-05-05 12:29:42
合計ジャッジ時間 2,119 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
18,176 KB
testcase_01 AC 18 ms
17,920 KB
testcase_02 AC 19 ms
18,176 KB
testcase_03 AC 20 ms
17,920 KB
testcase_04 AC 20 ms
18,176 KB
testcase_05 AC 19 ms
18,304 KB
testcase_06 AC 19 ms
17,792 KB
testcase_07 AC 19 ms
18,432 KB
testcase_08 AC 18 ms
18,176 KB
testcase_09 AC 19 ms
18,176 KB
testcase_10 AC 19 ms
17,792 KB
testcase_11 AC 19 ms
18,176 KB
testcase_12 AC 19 ms
17,920 KB
testcase_13 RE -
testcase_14 AC 19 ms
18,048 KB
testcase_15 AC 19 ms
18,304 KB
testcase_16 AC 20 ms
18,304 KB
testcase_17 AC 20 ms
17,792 KB
testcase_18 AC 20 ms
18,048 KB
testcase_19 AC 20 ms
18,048 KB
testcase_20 AC 19 ms
17,920 KB
testcase_21 AC 20 ms
18,048 KB
testcase_22 AC 19 ms
18,176 KB
testcase_23 RE -
testcase_24 RE -
testcase_25 AC 18 ms
18,048 KB
testcase_26 AC 18 ms
18,304 KB
testcase_27 WA -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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()
    {
        int N = Convert.ToInt32(Math.Pow(2, p() - 1));
        int X = p();
        int A = (X / p()) + 1;
        int B = ((N - 1 - X) / p()) + 1;
        Console.WriteLine(Math.Min(A,B));
        Console.ReadLine();
    }
    static int p() => int.Parse(Console.ReadLine());
}
0