結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー c-yanc-yan
提出日時 2021-01-27 00:56:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 78,732 KB
最終ジャッジ日時 2023-09-06 03:58:15
合計ジャッジ時間 5,019 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,752 KB
testcase_01 AC 44 ms
10,564 KB
testcase_02 AC 37 ms
9,672 KB
testcase_03 AC 75 ms
12,976 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,964 KB
testcase_06 AC 16 ms
7,860 KB
testcase_07 AC 17 ms
7,760 KB
testcase_08 AC 19 ms
8,316 KB
testcase_09 AC 57 ms
11,484 KB
testcase_10 AC 881 ms
78,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

result = []
for a in range(1, N - 1):
    for b in range(a, N - 1 - a):
        c = N - a - b
        if c < b:
            break
        result.append('%d %d %d' % (a, b, c))
print(*result, sep='\n')
0