Loading

摘要: B - CTZ 难度: ⭐ 题目大意 给定一个数n, 输出其二进制最后有几个连续的0; 解题思路 模拟一下就行; 神秘代码 #include<bits/stdc++.h> #define int long long #define IOS ios::sync_with_stdio(false); c 阅读全文
posted @ 2024-01-15 19:47 mostimali 阅读(21) 评论(0) 推荐(0) 编辑
摘要: B - Tetrahedral Number 难度: ⭐ 题目大意 给定一个n, 输出所有可能的三元组(x, y, z) 使得x + y + z <= n; 解题思路 n的数据范围很小, 打个三重循环就行; 神秘代码 #include<bits/stdc++.h> #define int long 阅读全文
posted @ 2024-01-15 16:45 mostimali 阅读(21) 评论(0) 推荐(0) 编辑