結果

問題 No.687 E869120 and Constructing Array 1
ユーザー bluemeganebluemegane
提出日時 2018-09-06 14:13:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 303 bytes
コンパイル時間 1,947 ms
コンパイル使用メモリ 62,836 KB
実行使用メモリ 22,704 KB
最終ジャッジ日時 2023-08-14 04:25:52
合計ジャッジ時間 3,823 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,576 KB
testcase_01 AC 57 ms
20,660 KB
testcase_02 AC 57 ms
20,652 KB
testcase_03 AC 58 ms
22,704 KB
testcase_04 AC 58 ms
20,624 KB
testcase_05 AC 59 ms
20,664 KB
testcase_06 AC 58 ms
20,600 KB
testcase_07 AC 57 ms
20,664 KB
testcase_08 AC 58 ms
22,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        for (int i = 1; i <= 10; i++)
        {
            var a2 = n - i;
            if (a2 >= 1 && a2 <= 10) { Console.WriteLine("{0} {1}",i,a2); break; }
        }
    }
}
0