結果
| 問題 | No.522 Make Test Cases(テストケースを作る) |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2017-03-19 09:51:58 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,334 ms / 2,000 ms |
| + 766µs | |
| コード長 | 389 bytes |
| 記録 | |
| コンパイル時間 | 874 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 174,160 KB |
| 最終ジャッジ日時 | 2026-08-16 22:07:45 |
| 合計ジャッジ時間 | 4,295 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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):
if j > n-i-j:
break
t = (i, j, n-i-j)
if ansdict[t]:
ansdict[t] = False
print(i, j, n-i-j)
if __name__=="__main__":
solve()