結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー vwxyzvwxyz
提出日時 2022-04-10 14:07:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 480 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 1,530 ms
コンパイル使用メモリ 86,308 KB
実行使用メモリ 83,500 KB
最終ジャッジ日時 2023-08-20 19:27:26
合計ジャッジ時間 4,551 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
77,328 KB
testcase_01 AC 113 ms
77,512 KB
testcase_02 AC 110 ms
77,584 KB
testcase_03 AC 125 ms
77,444 KB
testcase_04 AC 88 ms
71,104 KB
testcase_05 AC 75 ms
71,228 KB
testcase_06 AC 77 ms
71,460 KB
testcase_07 AC 83 ms
76,092 KB
testcase_08 AC 99 ms
76,616 KB
testcase_09 AC 123 ms
77,556 KB
testcase_10 AC 480 ms
83,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

N=int(readline())
for a in range(1,N+1):
    for b in range(a,N+1):
        c=N-a-b
        if a<=b<=c:
            print(a,b,c)
0