結果

問題 No.513 宝探し2
ユーザー vorg101vorg101
提出日時 2017-05-06 01:57:00
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 928 bytes
コンパイル時間 3,397 ms
コンパイル使用メモリ 104,796 KB
実行使用メモリ 38,940 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-09-23 13:54:37
合計ジャッジ時間 4,254 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
37,092 KB
testcase_01 AC 77 ms
38,940 KB
testcase_02 AC 74 ms
36,972 KB
testcase_03 AC 73 ms
36,536 KB
testcase_04 AC 74 ms
36,512 KB
testcase_05 AC 81 ms
36,412 KB
testcase_06 AC 74 ms
36,868 KB
testcase_07 AC 77 ms
38,728 KB
testcase_08 RE -
testcase_09 AC 73 ms
36,296 KB
testcase_10 AC 72 ms
36,980 KB
testcase_11 AC 73 ms
38,500 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    private static readonly Scanner sc = new Scanner();
    // private static readonly int INF = 1010101010;
    static void Main(string[] args)
    {
        Console.WriteLine("0 0");
        long d1 = sc.Int;
        Console.WriteLine("0 1000000000");
        long d2 = sc.Int;
        long x = (d1 + d2 - 1000000000) / 2;
        long y = d1 - x;
        Console.WriteLine("{0} {1}", x, y);
    }
}

class Scanner
{
    private string[] _str = new string[0];
    private int _i;

    public string Str
    {
        get
        {
            if (_i >= _str.Length)
            {
                _str = Console.ReadLine().Split(' ');
                _i = 0;
            }
            return _str[_i++];
        }
    }

    public int Int { get { return int.Parse(Str); } }
    public long Long { get { return long.Parse(Str); } }
    public double Double { get { return double.Parse(Str); } }
}
0