結果

問題 No.514 宝探し3
ユーザー AreTrashAreTrash
提出日時 2017-05-06 02:15:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 2,801 ms
コンパイル使用メモリ 95,488 KB
実行使用メモリ 30,900 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-23 13:54:56
合計ジャッジ時間 3,661 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
30,424 KB
testcase_01 AC 71 ms
30,500 KB
testcase_02 AC 77 ms
30,648 KB
testcase_03 AC 74 ms
30,720 KB
testcase_04 AC 70 ms
30,832 KB
testcase_05 AC 73 ms
30,756 KB
testcase_06 AC 72 ms
30,836 KB
testcase_07 AC 77 ms
30,304 KB
testcase_08 AC 69 ms
30,204 KB
testcase_09 AC 69 ms
30,868 KB
testcase_10 AC 71 ms
30,628 KB
testcase_11 AC 72 ms
30,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No514{
	public class Program{
		public static void Main(string[] args){
			const int Max = 1000000000;

			Console.WriteLine($"0 0");
			var L = int.Parse(Console.ReadLine());
			if(L == 0) return;

			Console.WriteLine($"{Max} 0");
			var R = int.Parse(Console.ReadLine());
			if(R == 0) return;
				 
			var y = (L + R - Max) / 2;
			var x = L - y;
			Console.WriteLine($"{x} {y}");
		}
	}
}
0