結果
問題 |
No.513 宝探し2
|
ユーザー |
![]() |
提出日時 | 2017-05-06 01:58:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 969 bytes |
コンパイル時間 | 2,102 ms |
コンパイル使用メモリ | 105,472 KB |
実行使用メモリ | 34,776 KB |
平均クエリ数 | 2.83 |
最終ジャッジ日時 | 2024-07-17 01:05:04 |
合計ジャッジ時間 | 2,812 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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; if (d1 == 0) return; 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); } } }