結果

問題 No.2563 色ごとのグループ
ユーザー raspberry1729
提出日時 2023-12-02 15:38:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 806 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 19,616 KB
最終ジャッジ日時 2024-09-26 19:02:04
合計ジャッジ時間 5,975 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 17 TLE * 1 -- * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
c=list(map(int,input().split()))
strawberry=[[] for i in range(a)]
for i in range(a-1):
	for j in range(i+1,a):
		if c[i]==c[j]:
			strawberry[i].append(j)
			strawberry[j].append(i)
print(strawberry)
0