結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | sue_charo |
提出日時 | 2017-06-02 23:07:31 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 1,034 ms / 2,000 ms |
コード長 | 745 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 12,080 KB |
実行使用メモリ | 109,812 KB |
最終ジャッジ日時 | 2023-10-22 01:33:51 |
合計ジャッジ時間 | 4,067 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge9 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 44 ms
11,276 KB |
testcase_01 | AC | 69 ms
13,248 KB |
testcase_02 | AC | 62 ms
12,520 KB |
testcase_03 | AC | 106 ms
16,692 KB |
testcase_04 | AC | 36 ms
10,844 KB |
testcase_05 | AC | 36 ms
10,844 KB |
testcase_06 | AC | 37 ms
10,844 KB |
testcase_07 | AC | 36 ms
10,868 KB |
testcase_08 | AC | 38 ms
11,044 KB |
testcase_09 | AC | 82 ms
14,476 KB |
testcase_10 | AC | 1,034 ms
109,812 KB |
ソースコード
# coding: utf-8 import array, bisect, collections, copy, heapq, itertools, math, random, re, string, sys, time sys.setrecursionlimit(10 ** 7) INF = 10 ** 20 MOD = 10 ** 9 + 7 def II(): return int(input()) def ILI(): return list(map(int, input().split())) def IAI(LINE): return [ILI() for __ in range(LINE)] def IDI(): return {key: value for key, value in ILI()} def read(): N = II() return (N,) def solve(N): ans = [] for a in range(1, N // 3 + 1): for b in range(a, (N - a) // 2 + 1): c = N - a - b ans.append((a, b, c)) return ans def main(): params = read() ans = solve(*params) for a in ans: print("{} {} {}".format(*a)) if __name__ == "__main__": main()