训练记录

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值