結果

問題 No.687 E869120 and Constructing Array 1
ユーザー NoNo
提出日時 2018-05-18 22:30:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 1,000 ms
コード長 500 bytes
コンパイル時間 2,130 ms
コンパイル使用メモリ 101,992 KB
実行使用メモリ 22,812 KB
最終ジャッジ日時 2023-09-10 23:02:48
合計ジャッジ時間 3,307 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,812 KB
testcase_01 AC 57 ms
20,784 KB
testcase_02 AC 57 ms
22,692 KB
testcase_03 AC 58 ms
20,884 KB
testcase_04 AC 57 ms
20,840 KB
testcase_05 AC 58 ms
20,684 KB
testcase_06 AC 57 ms
20,836 KB
testcase_07 AC 58 ms
22,720 KB
testcase_08 AC 57 ms
18,684 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 y
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int a1 = n;
            int a2 = 0;

            while (true)
            {
                a1--;
                a2++;
                if (a1 >= 1 && a1 <= 10 && a2 >= 1 && a2 <= 10 )
                {
                    break;
                }
            }





            Console.WriteLine("{0} {1}", a1, a2);
        }
    }
}
0