You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select xmlforest(xmlforest(u.id as id,concat(p.real_name,' - ',p.school)as university)as team) from "user" u
join user_profile p on p.user_id=u.id
where u.username~'team72\d{3}'
and exists(select 1 from submission s where s.user_id=u.id and contest_id=11)
union all
select xmlforest(xmlforest(row_number() over (order by s.create_time) as id,ascii(p._id)-64 as problem,extract(epoch from s.create_time-c.start_time) as time,s.user_id as team,true as judged,case when s.result=0 then true else false end as solved,case when s.result=0 or s.result=-2 then false else true end as penalty,case when f.is_first_solve=true then true else false end as "first-to-solve")as run) from submission s
join "user" u on u.id=user_id
join problem p on p.id=s.problem_id
join contest c on c.id=s.contest_id
left join (
select problem_id,min(s.create_time)as first_solve_time,true as is_first_solve from submission s