07 2022 档案

摘要:##A.国王的游戏 https://www.luogu.com.cn/problem/P1080 ###题意: 国王和n个大臣分别在左右手写下一个数,,从国王开始按一定顺序,每个大臣获得金币数为其前面包括国王左手的数的乘积除以自己右手写的数,求大臣最多获得金币数的最小值 ###思路: 这个贪心不是那 阅读全文
posted @ 2022-07-11 22:53 misasteria 阅读(19) 评论(0) 推荐(0) 编辑
摘要:##A. Grass Field ###思路: 只有4种情况,枚举一下即可 ###代码: #include <bits/stdc++.h> #define ll long long using namespace std; int t; int main () { cin >> t; while ( 阅读全文
posted @ 2022-07-09 10:03 misasteria 阅读(120) 评论(2) 推荐(1) 编辑
摘要:##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 阅读全文
posted @ 2022-07-05 18:14 misasteria 阅读(77) 评论(0) 推荐(0) 编辑

  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.
点击右上角即可分享
微信分享提示
🚀
回顶
收起