結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー lloyzlloyz
提出日時 2022-10-23 12:46:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 83,304 KB
最終ジャッジ日時 2023-09-14 23:44:07
合計ジャッジ時間 3,550 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
77,004 KB
testcase_01 AC 96 ms
77,236 KB
testcase_02 AC 93 ms
77,096 KB
testcase_03 AC 110 ms
77,932 KB
testcase_04 AC 66 ms
71,496 KB
testcase_05 AC 66 ms
71,252 KB
testcase_06 AC 66 ms
71,088 KB
testcase_07 AC 67 ms
71,188 KB
testcase_08 AC 85 ms
76,592 KB
testcase_09 AC 103 ms
77,688 KB
testcase_10 AC 340 ms
83,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(1, n):
    for j in range(i, n):
        if i + j > n:
            break
        k = n - i - j
        if not (i <= j <= k):
            break
        print(i, j, k)
0