結果

問題 No.687 E869120 and Constructing Array 1
ユーザー curryudon08curryudon08
提出日時 2021-02-28 23:02:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 448 bytes
コンパイル時間 839 ms
コンパイル使用メモリ 108,084 KB
実行使用メモリ 25,704 KB
最終ジャッジ日時 2024-04-12 10:57:54
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
23,772 KB
testcase_01 AC 18 ms
23,652 KB
testcase_02 AC 19 ms
25,680 KB
testcase_03 AC 19 ms
24,028 KB
testcase_04 AC 18 ms
23,732 KB
testcase_05 AC 20 ms
23,896 KB
testcase_06 AC 18 ms
23,908 KB
testcase_07 AC 21 ms
21,680 KB
testcase_08 AC 19 ms
25,704 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _0687
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());

            for(var i = 1; i <= 10; i++){
                var a = i;
                var b = n - i;

                if(a <= 10 && b <= 10){
                    Console.WriteLine(string.Format("{0} {1}", a, b));
                    break;
                }
            }
        }
    }
}
0