結果

問題 No.514 宝探し3
ユーザー bluemeganebluemegane
提出日時 2018-10-08 19:51:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 534 bytes
コンパイル時間 4,017 ms
コンパイル使用メモリ 101,140 KB
実行使用メモリ 38,628 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-23 16:25:33
合計ジャッジ時間 4,279 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
36,936 KB
testcase_01 AC 81 ms
36,568 KB
testcase_02 AC 81 ms
38,336 KB
testcase_03 AC 82 ms
38,520 KB
testcase_04 AC 80 ms
34,832 KB
testcase_05 AC 81 ms
34,952 KB
testcase_06 AC 81 ms
36,548 KB
testcase_07 AC 81 ms
38,628 KB
testcase_08 AC 81 ms
36,828 KB
testcase_09 AC 80 ms
36,344 KB
testcase_10 AC 81 ms
37,076 KB
testcase_11 AC 81 ms
36,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        getAns();
    }
    public static void getAns ()
    {
        var imax = 1000000000;
        Console.WriteLine("{0} {1}" ,0,0);
        var a = int.Parse(Console.ReadLine().Trim());
        if (a == 0) return;
        Console.WriteLine("{0} {1}",imax,0);
        var b = int.Parse(Console.ReadLine().Trim());
        if (b == 0) return;
        var ax = (imax + a - b) / 2;
        var ay = a - ax;
        Console.WriteLine("{0} {1}", ax, ay);
    }
}
0