結果
| 問題 | No.3786 Four Triplets, One Pair |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2026-11-10 14:44:37 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 36 ms / 2,000 ms |
| + 647µs | |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 64,364 KB |
| 実行使用メモリ | 53,760 KB |
| 最終ジャッジ日時 | 2026-11-10 14:44:43 |
| 合計ジャッジ時間 | 2,993 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge7_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
from collections import Counter
A = list(map(int,input().split()))
ans = []
for i in range(1,10):
B = A[:] + [i]
cb = Counter(B)
if(sorted(cb.values()) == [2,3,3,3,3]):
ans.append(i)
print(len(ans))
print(*ans)
回転