結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
aketijyuuzou
|
| 提出日時 | 2025-01-25 14:43:24 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 615 bytes |
| コンパイル時間 | 2,670 ms |
| コンパイル使用メモリ | 106,172 KB |
| 実行使用メモリ | 43,728 KB |
| 平均クエリ数 | 21.45 |
| 最終ジャッジ日時 | 2025-01-25 23:28:32 |
| 合計ジャッジ時間 | 9,988 ms |
|
ジャッジサーバーID (参考情報) |
judge8 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 30 |
コンパイルメッセージ
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()
{
int StaPos = 1;
int EndPos = 1000000000;
while (true) {
int MidPos = EndPos / 2;
if (EndPos < 1000000000) {
MidPos = (StaPos + EndPos) / 2;
}
Console.WriteLine(MidPos);
int GetVal = int.Parse(Console.ReadLine());
if (GetVal == 1) {
break;
//StaPos = MidPos;
}
else {
StaPos = MidPos;
}
}
}
}
aketijyuuzou