結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー bluemeganebluemegane
提出日時 2018-09-12 19:26:47
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 2,228 ms
コンパイル使用メモリ 100,972 KB
実行使用メモリ 24,856 KB
最終ジャッジ日時 2023-09-09 21:44:55
合計ジャッジ時間 7,160 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
22,724 KB
testcase_01 AC 120 ms
24,820 KB
testcase_02 AC 106 ms
22,856 KB
testcase_03 AC 191 ms
24,856 KB
testcase_04 AC 57 ms
20,680 KB
testcase_05 AC 57 ms
20,672 KB
testcase_06 AC 58 ms
20,836 KB
testcase_07 AC 58 ms
20,748 KB
testcase_08 AC 61 ms
20,668 KB
testcase_09 AC 149 ms
24,716 KB
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

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