結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー titiatitia
提出日時 2024-01-24 04:30:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 369 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 3,127 ms
コンパイル使用メモリ 81,444 KB
実行使用メモリ 80,924 KB
最終ジャッジ日時 2024-02-16 23:24:45
合計ジャッジ時間 8,240 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
72,568 KB
testcase_01 AC 65 ms
75,640 KB
testcase_02 AC 67 ms
75,512 KB
testcase_03 AC 77 ms
75,768 KB
testcase_04 AC 33 ms
53,460 KB
testcase_05 AC 35 ms
53,460 KB
testcase_06 AC 34 ms
53,460 KB
testcase_07 AC 36 ms
53,460 KB
testcase_08 AC 53 ms
66,380 KB
testcase_09 AC 70 ms
75,768 KB
testcase_10 AC 369 ms
80,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

for a in range(1,N):
    for b in range(a,N):
        c=N-a-b

        if a<=b<=c and 1<=c:
            print(a,b,c)
        else:
            break
0