結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー tookunn_1213tookunn_1213
提出日時 2017-06-03 09:48:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 508 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 543 ms
コンパイル使用メモリ 81,452 KB
実行使用メモリ 80,672 KB
最終ジャッジ日時 2023-10-22 02:49:21
合計ジャッジ時間 4,335 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
73,492 KB
testcase_01 AC 88 ms
75,732 KB
testcase_02 AC 89 ms
75,604 KB
testcase_03 AC 105 ms
75,868 KB
testcase_04 AC 40 ms
51,572 KB
testcase_05 AC 40 ms
51,608 KB
testcase_06 AC 40 ms
51,584 KB
testcase_07 AC 51 ms
57,928 KB
testcase_08 AC 78 ms
68,268 KB
testcase_09 AC 101 ms
75,748 KB
testcase_10 AC 508 ms
80,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for a in range(1,N+1):
	for b in range(1,N+1-a):
		if N-a-b > 0 and a <= b <= N-a-b:
			print(a,b,N-a-b)
0