結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー H3PO4H3PO4
提出日時 2020-09-12 09:02:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,179 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 8,284 KB
最終ジャッジ日時 2023-08-29 05:13:39
合計ジャッジ時間 7,508 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
8,172 KB
testcase_01 AC 52 ms
8,228 KB
testcase_02 AC 43 ms
8,232 KB
testcase_03 AC 92 ms
8,284 KB
testcase_04 AC 15 ms
7,748 KB
testcase_05 AC 16 ms
7,756 KB
testcase_06 AC 16 ms
7,852 KB
testcase_07 AC 16 ms
7,904 KB
testcase_08 AC 18 ms
8,248 KB
testcase_09 AC 70 ms
8,276 KB
testcase_10 AC 1,179 ms
8,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for a in range(1, N // 3 + 1):
    for b in range(a, N):
        if (c := (N - a - b)) < b:
            break
        print(a, b, c)
0