結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 👑 yumechiyumechi
提出日時 2017-03-19 09:32:20
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 270 bytes
コンパイル時間 1,330 ms
コンパイル使用メモリ 86,368 KB
実行使用メモリ 271,564 KB
最終ジャッジ日時 2023-09-25 12:42:11
合計ジャッジ時間 8,930 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
82,744 KB
testcase_01 AC 161 ms
81,940 KB
testcase_02 AC 146 ms
81,216 KB
testcase_03 AC 245 ms
88,236 KB
testcase_04 AC 73 ms
71,252 KB
testcase_05 AC 74 ms
71,312 KB
testcase_06 AC 72 ms
71,324 KB
testcase_07 AC 82 ms
76,568 KB
testcase_08 AC 99 ms
77,988 KB
testcase_09 AC 191 ms
83,356 KB
testcase_10 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n = int(input())
    ans = set()
    for i in range(1, n):
        for j in range(1, n-i):
            ans.add(tuple(sorted([i, j, n-i-j])))
    for elem in sorted(list(ans)):
        print(" ".join(map(str, elem)))

if __name__=="__main__":
    solve()
0