結果
問題 | No.598 オーバーフローファンタジー |
ユーザー |
![]() |
提出日時 | 2017-11-25 11:54:00 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 2,500 ms |
コンパイル使用メモリ | 110,260 KB |
実行使用メモリ | 26,068 KB |
最終ジャッジ日時 | 2024-12-22 23:41:55 |
合計ジャッジ時間 | 4,323 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 WA * 1 |
コンパイルメッセージ
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() { 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()); }