2936: 简单算术表达式求值 摘要:```cpp #include using namespace std; int js(int a,char c,int b){ if(c=='+') cout…… 题解列表 2024年07月25日 0 点赞 0 评论 369 浏览 评分:0.0
【C语言题解】二进制移位练习 摘要:## 思路 右移4到7位,按权重累加,求得十进制结果 ## 代码 ```cpp #include int main(){ int a, s = 0, k = 1; scanf ("%…… 题解列表 2024年07月25日 0 点赞 0 评论 352 浏览 评分:0.0
【C语言题解】 C语言循环移位 摘要:#### 思路  - 分别获取两部分 1. 右移n位,得到 …… 题解列表 2024年07月26日 1 点赞 0 评论 343 浏览 评分:0.0
等差数列尼科彻斯定理 摘要:参考代码:/** * 尼科彻斯定理:任何一个整数m的立方都可以写成m个连续奇数之和 * 示例:13*13*13=2197=157+159+161+163+165+167+169+171+173…… 题解列表 2024年07月26日 0 点赞 0 评论 276 浏览 评分:0.0
好用的STL双端队列 摘要:#include<bits/stdc++.h> using namespace std; deque<char>q; int main() { char c[100]; while(c…… 题解列表 2024年07月26日 0 点赞 0 评论 228 浏览 评分:0.0
好用的STL双端队列(1) 摘要:#include<bits/stdc++.h> using namespace std; deque<int>q; int main() { char c[1000]; c…… 题解列表 2024年07月26日 0 点赞 0 评论 160 浏览 评分:0.0
【欧拉筛法】哥德巴赫曾猜测 摘要:```cpp #include using namespace std; const int N = 32770; int prime[N];//存储质数 int num[N];//标注是…… 题解列表 2024年07月27日 0 点赞 0 评论 252 浏览 评分:0.0
含k个3的数的解 摘要:解题思路:注意事项:参考代码:m = int(input())k=int(input())if m%19==0: m=str(m) count=m.count('3') …… 题解列表 2024年07月28日 0 点赞 0 评论 247 浏览 评分:0.0
python方法解决 摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == 'y': s = 5a = int(l[0])if a …… 题解列表 2024年07月28日 0 点赞 0 评论 636 浏览 评分:0.0
使用max函数 摘要:解题思路:注意事项:参考代码:l = input().split() # 读取输入并分割成列表 t = [] # 创建一个空列表 # 使用列表推导式将 l 中的每个字符串转换为浮点数,并添…… 题解列表 2024年07月28日 0 点赞 0 评论 810 浏览 评分:0.0