結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー rpy3cpprpy3cpp
提出日時 2017-06-02 22:26:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,403 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 10,208 KB
最終ジャッジ日時 2023-10-22 00:10:36
合計ジャッジ時間 4,245 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
10,208 KB
testcase_01 AC 76 ms
10,188 KB
testcase_02 AC 64 ms
10,184 KB
testcase_03 AC 124 ms
10,188 KB
testcase_04 AC 29 ms
9,984 KB
testcase_05 AC 30 ms
9,984 KB
testcase_06 AC 29 ms
9,984 KB
testcase_07 AC 29 ms
10,024 KB
testcase_08 AC 33 ms
10,200 KB
testcase_09 AC 95 ms
10,188 KB
testcase_10 AC 1,403 ms
10,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

for a in range(1, N - 1):
    for b in range(a, N - a):
        c = N - a - b
        if c < b: break
        print(a, b, N - a - b)
0