結果

問題 No.1121 Social Distancing in Cinema
コンテスト
ユーザー Keroru
提出日時 2020-07-22 23:49:08
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 220 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 519 ms
コンパイル使用メモリ 20,956 KB
実行使用メモリ 55,540 KB
最終ジャッジ日時 2026-03-07 14:01:54
合計ジャッジ時間 10,522 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 47
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n,*t=map(int,open(a:=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];z=y%9*10+(x+5*(y%18>8))%10;c[z]+=1;p[z]+=i+1,
t=0
for i in range(d):
 if t<c[i]:t=c[i];a=i
print(t)
print(*p[a])
0