結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー takakintakakin
提出日時 2020-05-15 16:22:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,378 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 11,728 KB
実行使用メモリ 10,196 KB
最終ジャッジ日時 2023-10-19 06:48:43
合計ジャッジ時間 4,137 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
10,196 KB
testcase_01 AC 74 ms
10,176 KB
testcase_02 AC 62 ms
10,172 KB
testcase_03 AC 121 ms
10,176 KB
testcase_04 AC 30 ms
9,968 KB
testcase_05 AC 29 ms
9,968 KB
testcase_06 AC 29 ms
9,968 KB
testcase_07 AC 30 ms
10,008 KB
testcase_08 AC 33 ms
10,188 KB
testcase_09 AC 92 ms
10,176 KB
testcase_10 AC 1,378 ms
10,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
for a in range(1,n//3+1):
  for b in range(a,(n-a)//2+1):
    if n-a-b>=b:
      print(a,b,n-a-b)
0