結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 👑 rin204rin204
提出日時 2022-02-12 22:02:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 397 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 500 ms
コンパイル使用メモリ 86,588 KB
実行使用メモリ 82,060 KB
最終ジャッジ日時 2023-09-11 10:28:11
合計ジャッジ時間 6,544 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
76,356 KB
testcase_01 AC 103 ms
77,056 KB
testcase_02 AC 99 ms
76,880 KB
testcase_03 AC 113 ms
77,612 KB
testcase_04 AC 73 ms
71,304 KB
testcase_05 AC 76 ms
71,248 KB
testcase_06 AC 73 ms
71,284 KB
testcase_07 AC 75 ms
71,004 KB
testcase_08 AC 91 ms
76,596 KB
testcase_09 AC 112 ms
77,120 KB
testcase_10 AC 397 ms
82,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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