結果

問題 No.687 E869120 and Constructing Array 1
ユーザー バカらっくバカらっく
提出日時 2018-05-18 22:27:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 1,000 ms
コード長 1,029 bytes
コンパイル時間 3,237 ms
コンパイル使用メモリ 103,900 KB
実行使用メモリ 22,840 KB
最終ジャッジ日時 2023-09-10 23:02:36
合計ジャッジ時間 3,414 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,720 KB
testcase_01 AC 55 ms
18,676 KB
testcase_02 AC 55 ms
20,668 KB
testcase_03 AC 55 ms
20,812 KB
testcase_04 AC 55 ms
20,668 KB
testcase_05 AC 55 ms
20,660 KB
testcase_06 AC 56 ms
20,676 KB
testcase_07 AC 55 ms
22,840 KB
testcase_08 AC 55 ms
22,700 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;

public class Program
{

    public void Proc()
    {
		int inpt = int.Parse(Reader.ReadLine());
		int numa = inpt - Math.Min(10, inpt - 1);
		int numb = inpt - numa;
		Console.WriteLine(numa + " " + numb);
	}


	public class Reader
    {
        static StringReader sr;
        public static bool IsDebug = false;
        public static string ReadLine()
        {
            if (IsDebug)
            {
                if (sr == null)
                {
                    sr = new StringReader(InputText.Trim());
                }
                return sr.ReadLine();
            }
            else
            {
                return Console.ReadLine();
            }
        }
        private static string InputText = @"



1000 8
1 3 4 5 6 7 8 9

";
    }

    public static void Main(string[] args)
    {
#if DEBUG
        Reader.IsDebug = true;
#endif
        Program prg = new Program();
        prg.Proc();
    }
}
0