結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー GrayCoderGrayCoder
提出日時 2017-06-02 23:27:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 281 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 11,744 KB
実行使用メモリ 17,252 KB
最終ジャッジ日時 2023-10-22 01:43:00
合計ジャッジ時間 7,783 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
17,252 KB
testcase_01 AC 1,760 ms
10,220 KB
testcase_02 AC 1,138 ms
10,216 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())

    a = N // 3
    b = (N - 1) // 2
    c = N - 2

    for i in range(1, a + 1):
        for j in range(1, b + 1):
            for k in range(1, c + 1):
                if i + j + k == N and i <= j <= k:
                    print(i, j, k)

main()
0