We will hold AtCoder Regular Contest 215.
- Contest URL: https://atcoder.jp/contests/arc215
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20260222T2100&p1=248
- Duration: 120 minutes
- Writer: ynymxiaolongbao
- Tester: Nyaan, maspy
- Rated range: 1200 ~ 2799
- Point Values: 500-500-600-600-700-700
We are looking forward to your participation!








A kind of "human wise" solution: create a queue to save the "possible surname"'s index, then consider the front of the queue,check every i that satisfies max(1,front-100)<=i<=min(front+100,n) and !(a[i].x<a[fr].x&&a[i].y<a[fr].y&&a[i].z<a[fr].z),push i into the queue. so the answer is the number of i that i haven't entered the queue.
to my surprise,this obviously wrong solution can exactly solve the problem! and it's not too slow(161 ms)!
code:
oh,i forgot,this is the solution of C.