結果
| 問題 |
No.598 オーバーフローファンタジー
|
| コンテスト | |
| ユーザー |
keymoon_68
|
| 提出日時 | 2017-11-25 11:52:07 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 331 bytes |
| コンパイル時間 | 848 ms |
| コンパイル使用メモリ | 107,388 KB |
| 実行使用メモリ | 28,248 KB |
| 最終ジャッジ日時 | 2024-11-27 09:56:41 |
| 合計ジャッジ時間 | 2,517 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 1 RE * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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());
}
keymoon_68