ZA139
ZA139
全部文章
acm
字符串(1)
数据结构(1)
未归档(13)
算法(3)
算法竞赛进阶指南(1)
题解(2)
归档
标签
去牛客网
登录
/
注册
ZA139
Probably a Video Game Lover
全部文章
/ acm
(共5篇)
起床困难综合症
起床困难综合症 题意 给你N个门,每个门的操作为AND,XOR,OR中的一种,每个门有一个操作数,现在让一个[0,m]的数字x依次通过这n扇门,问最大的结果是多少 思路 位运算没有进位,所以可以每一位单独运算 所以我们让在[0,m]范围的每一位去通过这n道门,查看结果即可 因为x有[0,m]范围的限...
每日一题
2020-10-23
1
688
刘汝佳算法竞赛入门经典(第二版)Digit Counting(Uva1225)--- sprintf()实现
原题: UvaOJ:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=830&page=show_problem&problem=3666 VJ:https:/...
2020-10-21
0
929
2016CCPC Finals[HDU-5999]The Third Cup is Free题解
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=5999 The Third Cup is free Panda and his friends were hiking in the forest. They came across a coffee...
2020-10-21
0
658
洛谷P1914题解——(本地测试AC但是交题爆零全WA)使用getchar();
本题最大的坑在于: windows环境下的换行符为\r\n,linux环境的换行符为\n. 我们再来看看洛谷的部分OJ判题机数据和机制 常见“我在本地/xxOJ AC了、洛谷却不过”的原因 Linux中换行符是’\n’而Windows中是’\r\n’(多一个字符),有些数据在Windows中...
2020-10-21
0
1716
Codeforces Round #594 (Div. 1)1239A 【Ivan the Fool and the Probability Theory】题解
Recently Ivan the Fool decided to become smarter and study the probability theory. He thinks that he understands the subject fairly well, and so he be...
2020-10-21
0
717