結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 👑 KazunKazun
提出日時 2021-02-14 17:58:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 277 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 152,868 KB
最終ジャッジ日時 2023-09-29 09:34:50
合計ジャッジ時間 3,385 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
76,612 KB
testcase_01 AC 81 ms
77,756 KB
testcase_02 AC 77 ms
77,380 KB
testcase_03 AC 88 ms
81,528 KB
testcase_04 AC 68 ms
71,440 KB
testcase_05 AC 67 ms
71,352 KB
testcase_06 AC 67 ms
71,372 KB
testcase_07 AC 74 ms
75,716 KB
testcase_08 AC 77 ms
76,488 KB
testcase_09 AC 88 ms
79,884 KB
testcase_10 AC 277 ms
152,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
write=sys.stdout.write

N=int(input())
X=[]
for a in range(1,N):
    for b in range(a,N):
        c=N-(a+b)
        if b<=c:
            X.append("{} {} {}".format(a,b,c))
write("\n".join(X))
0