Intel Code Challenge Final Round (div.1 + div.2 combined) editorial
摘要:724A - Checking the Calendar 724B - Batch Sort 724C - Ray Tracing 题目大意: 在一个nXm的平面里,光线从(0,0)以45度角出发,遇到边界则发生反射,遇到角时就停止。 在平面中有些监视器坐标为(xi,yi),问你光线第一次经过监视器
阅读全文
Codeforces Round #503 (based on SIS olympiad)
摘要:1020A - New Building for SIS 1020B - Badge 1019A - Elections 题目大意: 某国有n个公民,m个政党。 进行一个选举,得票最高的政党获胜 每个公民有一个起初决定投的政党编号xhi; 但是只要给他ci元,他就能改变自己所投的政党至你想投的。 问
阅读全文