結果
| 問題 |
No.514 宝探し3
|
| コンテスト | |
| ユーザー |
mban
|
| 提出日時 | 2017-05-06 15:32:22 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 766 bytes |
| コンパイル時間 | 871 ms |
| コンパイル使用メモリ | 111,016 KB |
| 実行使用メモリ | 34,392 KB |
| 平均クエリ数 | 2.75 |
| 最終ジャッジ日時 | 2024-07-16 13:36:32 |
| 合計ジャッジ時間 | 2,418 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using System.Linq;
class Program
{
static void Main()
{
new Magatro().Solve();
}
}
class Magatro
{
int one, two;
public void Solve()
{
Console.WriteLine("0 0");
one = int.Parse(Console.ReadLine());
if (one == 0)
{
return;
}
Console.WriteLine("0 1000000000");
two = int.Parse(Console.ReadLine());
if (two == 0)
{
return;
}
int x = (one + two - 1000000000) / 2;
int y = one - x;
Console.WriteLine($"{x} {y}");
}
}
mban