結果
| 問題 | No.522 Make Test Cases(テストケースを作る) |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2017-03-19 09:45:11 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,679 ms / 2,000 ms |
| + 115µs | |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 1,049 ms |
| コンパイル使用メモリ | 21,284 KB |
| 実行使用メモリ | 174,320 KB |
| 最終ジャッジ日時 | 2026-08-16 22:06:50 |
| 合計ジャッジ時間 | 5,734 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
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()