switch请求出战(比if else用更少的运行时间) 摘要:#include<stdio.h>int main(){ int i,bonus=0; scanf("%d",&i); switch(i/100000){ cas…… 题解列表 2023年05月07日 0 点赞 0 评论 240 浏览 评分:0.0
新学小知识,哈哈,按位取反 摘要:解题思路:注意事项: v&(~x<<a)&(~x>>31-b);//二进制左移低位补0,二进制右移高位补0 其实这里就相当于下面,这就是取反符号的作…… 题解列表 2023年05月07日 0 点赞 0 评论 353 浏览 评分:0.0
c语言绝对值排序 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2023年05月07日 0 点赞 0 评论 433 浏览 评分:9.9
5行代码搞定 摘要:解题思路:直接使用内置函数max()来判断大小注意事项:使用format()的时候注意前面要加上{}参考代码:def Max_num(a,b,c): for i in range(1,3):…… 题解列表 2023年05月07日 0 点赞 0 评论 299 浏览 评分:0.0
求圆的面积浅答 摘要:解题思路:先要有一个浮点型的半径r,当然还要知道圆的面积公式:半径的平方乘以PI,PI为3.1415926注意事项:这道题不能使用3.14的原因,按照样例来看应该是进行四舍五入了的;如果使用了3.14…… 题解列表 2023年05月07日 0 点赞 0 评论 409 浏览 评分:9.9
编写题解 1169: 绝对值排序 摘要:```c++ #include #include #include using namespace std; int main() { int nums[100] = {0};…… 题解列表 2023年05月06日 0 点赞 0 评论 260 浏览 评分:0.0
033: [编程入门]自定义函数之字符提取 摘要:```c #include #include using namespace std; int main() { string str; getline(cin…… 题解列表 2023年05月06日 0 点赞 0 评论 267 浏览 评分:0.0
1319: 没有上司的晚会 摘要:```cpp #include #include using namespace std; const int maxn=6001; int n,dp[maxn][2],hap[maxn];…… 题解列表 2023年05月06日 0 点赞 0 评论 438 浏览 评分:9.9
2233: 蓝桥杯算法训练-图形显示(c++代码) 摘要:解题思路:通过倒序循环来完成“*”和“ ”的输出;注意事项:空格和换行不要忘了哦参考代码:#include<iostream>using namespace std;int main(){ in…… 题解列表 2023年05月06日 0 点赞 0 评论 288 浏览 评分:9.9
1029题 : 自定义函数处理素数 摘要:# 自己写的代码 ```c #include int main() { int SuShu_Panduan(); int N,i=2; scanf("%d",&…… 题解列表 2023年05月06日 0 点赞 0 评论 258 浏览 评分:0.0