fork download
  1. #include <stdio.h>
  2.  
  3. int r[86402]={},u,i,n,t;g(s,o){for(;s<86401;n<r[s]?n=r[s]:0,++s)r[s+o]+=o?-1:1;}main(){for(n=0;scanf("%d%d%d",&u,&t,&i)==3;g(t,i));printf("%d",n);}
  4.  
Success #stdin #stdout 0s 2508KB
stdin
12345 16499 0
12345 16511 1
75487 3300 0
75487 16500 1
97846 16500 0
97846 16501 1
stdout
3