結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー RisenRisen
提出日時 2017-06-02 22:29:01
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 486 bytes
コンパイル時間 3,467 ms
コンパイル使用メモリ 108,252 KB
実行使用メモリ 31,480 KB
最終ジャッジ日時 2023-10-21 21:02:06
合計ジャッジ時間 8,220 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Collections.Generic;

public class Solution
{
    public static void Main()
    {
        var n = int.Parse(Console.ReadLine());
        var result = 0;

        for (int a = 0; a * 3 < n; a++)
        {
            for (int b = a; a + b + b < n; b++)
            {
                for (int c = b; a + b + c < n; c++)
                {
                    Console.WriteLine($"{a} {b} {c}");
                }
            }
        }
    }
}
0