結果
問題 |
No.3011 あ、俺こいつの役やりたい!
|
ユーザー |
![]() |
提出日時 | 2025-01-25 12:49:21 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 582 bytes |
コンパイル時間 | 4,319 ms |
コンパイル使用メモリ | 108,588 KB |
実行使用メモリ | 76,484 KB |
最終ジャッジ日時 | 2025-01-25 22:24:39 |
合計ジャッジ時間 | 142,037 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge7 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 44 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; class Program { static void Main() { long N = long.Parse(Console.ReadLine()); long StaPos = 1; long EndPos = int.MaxValue; while (true) { long MidPos = (StaPos + EndPos) / 2; Console.WriteLine(MidPos); long GetVal = long.Parse(Console.ReadLine()); if (GetVal == 1) { break; //StaPos = MidPos; } else { EndPos = MidPos; } } } }