結果

問題 No.513 宝探し2
ユーザー AreTrashAreTrash
提出日時 2017-05-06 02:15:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 3,105 ms
コンパイル使用メモリ 104,320 KB
実行使用メモリ 38,872 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 01:09:59
合計ジャッジ時間 4,529 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
36,756 KB
testcase_01 AC 78 ms
36,880 KB
testcase_02 AC 79 ms
38,872 KB
testcase_03 AC 77 ms
38,720 KB
testcase_04 AC 75 ms
37,008 KB
testcase_05 AC 79 ms
36,904 KB
testcase_06 AC 78 ms
36,768 KB
testcase_07 AC 76 ms
38,644 KB
testcase_08 AC 72 ms
36,704 KB
testcase_09 AC 76 ms
38,520 KB
testcase_10 AC 78 ms
36,316 KB
testcase_11 AC 79 ms
37,160 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