07 2022 档案
摘要:##A.国王的游戏 https://www.luogu.com.cn/problem/P1080 ###题意: 国王和n个大臣分别在左右手写下一个数,,从国王开始按一定顺序,每个大臣获得金币数为其前面包括国王左手的数的乘积除以自己右手写的数,求大臣最多获得金币数的最小值 ###思路: 这个贪心不是那
阅读全文
摘要:##A. Grass Field ###思路: 只有4种情况,枚举一下即可 ###代码: #include <bits/stdc++.h> #define ll long long using namespace std; int t; int main () { cin >> t; while (
阅读全文
摘要:##A. The Third Three Number Problem ###题意: 给定一个数n,找到三个数a,b,c 使得 a xor b + b xor c + a xor c = n ###思路: 一般位运算的A题都是可以直接凑出来的,于是直接寻找特殊值,令 a = b = 0, c = x
阅读全文