結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー c-yanc-yan
提出日時 2021-01-27 00:59:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 795 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 640 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 78,744 KB
最終ジャッジ日時 2023-09-06 04:00:03
合計ジャッジ時間 4,066 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,544 KB
testcase_01 AC 41 ms
10,204 KB
testcase_02 AC 35 ms
9,832 KB
testcase_03 AC 70 ms
13,180 KB
testcase_04 AC 15 ms
7,748 KB
testcase_05 AC 14 ms
7,844 KB
testcase_06 AC 14 ms
7,768 KB
testcase_07 AC 15 ms
7,880 KB
testcase_08 AC 16 ms
8,248 KB
testcase_09 AC 51 ms
11,400 KB
testcase_10 AC 795 ms
78,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

result = []
for a in range(1, N):
    for b in range(a, N):
        c = N - a - b
        if c < b:
            break
        result.append('%d %d %d' % (a, b, c))
print(*result, sep='\n')
0