結果

問題 No.1121 Social Distancing in Cinema
ユーザー Keroru
提出日時 2020-07-22 23:43:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 183 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 153,504 KB
最終ジャッジ日時 2024-06-23 01:50:41
合計ジャッジ時間 6,597 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 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[a])
0