結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
|
提出日時 | 2017-03-19 09:45:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 137 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 159,096 KB |
最終ジャッジ日時 | 2024-07-18 10:06:52 |
合計ジャッジ時間 | 4,824 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 TLE * 1 |
ソースコード
from collections import defaultdict def solve(): n = int(input()) ansdict = defaultdict(lambda: True) for i in range(1, n//3+1): for j in range(i, n*2//3): t = tuple(sorted([i, j, n-i-j])) if ansdict[t]: ansdict[t] = False for ans in sorted(list(ansdict.keys())): print(" ".join(map(str, ans))) if __name__=="__main__": solve()