結果

問題 No.1121 Social Distancing in Cinema
ユーザー Keroru
提出日時 2020-07-22 23:41:48
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 228 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 153,448 KB
最終ジャッジ日時 2024-06-23 01:47:57
合計ジャッジ時間 14,972 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 47
権限があれば一括ダウンロードができます

ソースコード

diff #

n,*t=map(int,open(0).read().split())
d=90
c=[0]*d
p=[[]for i in' '*d]
for i in range(n):x,y=t[i*2:-~i*2];k=y%18;z=k%9*10+(x+5*(k>8))%10;c[z]+=1;p[z]+=i+1,
t=c[0]
a=0
for i in range(d):
 if t<c[i]:t=c[i];a=i
print(t)
print(*p[s])
0