結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー aaaaaaaaaa
提出日時 2017-06-03 00:29:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 136 bytes
コンパイル時間 721 ms
コンパイル使用メモリ 11,644 KB
実行使用メモリ 17,204 KB
最終ジャッジ日時 2023-10-22 02:07:48
合計ジャッジ時間 5,810 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
17,204 KB
testcase_01 AC 131 ms
10,236 KB
testcase_02 AC 107 ms
10,224 KB
testcase_03 AC 244 ms
10,252 KB
testcase_04 AC 29 ms
10,008 KB
testcase_05 AC 29 ms
10,008 KB
testcase_06 AC 29 ms
10,008 KB
testcase_07 AC 31 ms
10,056 KB
testcase_08 AC 36 ms
10,228 KB
testcase_09 AC 181 ms
10,244 KB
testcase_10 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
n=int(input())
for x,y in itertools.product(range(1,~-n),range(1,~-n)):
    if n-x-y>0 and x<=y<=n-x-y:print(x,y,n-x-y)
0