結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー cleanttedcleantted
提出日時 2017-06-02 23:21:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,674 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 11,736 KB
実行使用メモリ 10,224 KB
最終ジャッジ日時 2023-10-22 01:41:30
合計ジャッジ時間 4,699 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
10,224 KB
testcase_01 AC 84 ms
10,204 KB
testcase_02 AC 70 ms
10,200 KB
testcase_03 AC 140 ms
10,204 KB
testcase_04 AC 30 ms
10,000 KB
testcase_05 AC 30 ms
10,000 KB
testcase_06 AC 30 ms
10,000 KB
testcase_07 AC 30 ms
10,040 KB
testcase_08 AC 33 ms
10,216 KB
testcase_09 AC 103 ms
10,204 KB
testcase_10 AC 1,674 ms
10,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

a = 1
while a < int(N/3) + 1:
    b = a
    while b < int((N-a)/2) + 1:
        c = N - a - b
        print(a, b, c)
        b += 1
    a += 1
0