训练记录

2017/2/16
Codeforces Round #397 (DIV 1,2 combined)
Solved: 3 (A, B, C) out of 7 in 3 hours
Attempted: D
Standing: 1244/5507

2017/2/18
Codeforces Round #398 (DIV 2)
Solved 2 (A, D) out of 5 in 2 hours
Attempted: B, C
Standing: 131/3132
Starred Problems: B, C, E

2017/2/19
hihoCoder Challenge #27
Solved 1 (A) out of 4 in 2 hours
Attempted: B
Standing: 64/116
Starred: A, B

2018/4/2
HackerRank HourRank 27
Solved: 1.5/3
Attempted: 2/3
Score: 62.59/135
Rank 87/1711
总结:

  1. ?: 的优先级比 << 高,在 cout 语句中用 ?: 要加括号。
  2. 仔细读题,读题目再写代码。
  3. long long ans; ans = max(ans, 0LL),其中 0LL 不能写成 0
  4. std::setstd::multiset 的成员函数 rbegin() 返回值是指向最大值的 iterator。
  5. std::set/mapstd:multiset/multimaperase 方法的参数的类型可以是 iterator 也可以是 const key_type & 。前一种情况只删除一个元素,后一种情况删除所有 key 等于所提供的参数的元素。
原文地址:https://www.cnblogs.com/Patt/p/6407603.html