結果
問題 | No.513 宝探し2 |
ユーザー | mban |
提出日時 | 2017-05-06 15:30:56 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 83 ms / 2,000 ms |
コード長 | 758 bytes |
コンパイル時間 | 2,410 ms |
コンパイル使用メモリ | 106,224 KB |
実行使用メモリ | 38,520 KB |
平均クエリ数 | 2.75 |
最終ジャッジ日時 | 2023-09-24 01:12:25 |
合計ジャッジ時間 | 4,362 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 83 ms
36,996 KB |
testcase_01 | AC | 78 ms
36,200 KB |
testcase_02 | AC | 80 ms
38,520 KB |
testcase_03 | AC | 79 ms
36,964 KB |
testcase_04 | AC | 77 ms
34,448 KB |
testcase_05 | AC | 76 ms
36,896 KB |
testcase_06 | AC | 81 ms
36,700 KB |
testcase_07 | AC | 80 ms
36,352 KB |
testcase_08 | AC | 78 ms
34,884 KB |
testcase_09 | AC | 79 ms
36,616 KB |
testcase_10 | AC | 78 ms
34,608 KB |
testcase_11 | AC | 75 ms
36,548 KB |
コンパイルメッセージ
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 100000"); two = int.Parse(Console.ReadLine()); if (two == 0) { return; } int x = (one + two - 100000) / 2; int y = one - x; Console.WriteLine($"{x} {y}"); } }