10 2017 档案
Codeforces 792C. Divide by Three 贪心+分类讨论
摘要:题意:给一个数字字符串,让你删除尽可能少的数位,使得这个数能够被3整除,并且不能有前导0存在。 思路:所有数位加起来%3得到的值mod,那么就有三种情况 mod==0:直接输出 mod==1:要么删除一个数位%3=1的数,要么删除两个数位%3=2的数 mod==2:要么删除一个数位%3=2的数,要么 阅读全文
posted @ 2017-10-26 13:43 Kevin_Zzzzz 阅读(314) 评论(0) 推荐(0)
Codeforces 699C. Vacations
摘要:C. Vacations time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Vacations time limit per 阅读全文
posted @ 2017-10-22 20:27 Kevin_Zzzzz 阅读(364) 评论(0) 推荐(0)