結果
問題 |
No.5004 Room Assignment
|
ユーザー |
👑 ![]() |
提出日時 | 2021-12-01 16:10:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 493 ms / 5,000 ms |
コード長 | 346 bytes |
コンパイル時間 | 529 ms |
実行使用メモリ | 103,136 KB |
スコア | 137,985,971 |
平均クエリ数 | 7642.72 |
最終ジャッジ日時 | 2021-12-01 16:11:19 |
合計ジャッジ時間 | 49,233 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
純コード判定しない問題か言語 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 100 |
ソースコード
T=[0,9,15,20,25,30,35,40,44,48,52,56,60,65,70,75,80,85,92,101] Z=[0]*20 L=[0]*20 d=0 for t in range(int(input().split()[0])): N=map(int,input().split()[1:]) a=[] for i in N: d+=1 p=0 while T[p]<=i:p+=1 if Z[p]==0:L[p]=d else:a.append(str(L[p])+" "+str(d)) Z[p]+=1 if Z[p]>=4:Z[p]=0 print(len(a)) if len(a)>0:print("\n".join(a))