可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 140 浏览 评分:0.0
容易写到的直接解法pow()解释,代码逻辑非常简单 摘要:解题思路:直接pow( )注意事项:long long int 的最大值:9223372036854775807double 最大值:1.8 乘以 10 的308 次方2的一百次方等于12676506…… 题解列表 2024年11月11日 0 点赞 0 评论 229 浏览 评分:0.0
注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 143 浏览 评分:0.0
[STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a; …… 题解列表 2024年11月12日 0 点赞 0 评论 177 浏览 评分:0.0
用c语言解决字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { char ch;int j,z,k,s; j=z=k=s=0; while((ch=getc…… 题解列表 2024年11月12日 1 点赞 0 评论 468 浏览 评分:0.0
蓝桥杯算法提高VIP-数组替换 (*>.<*) 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void Add (int a[], int m, int b[], int…… 题解列表 2024年11月12日 0 点赞 0 评论 119 浏览 评分:0.0
二级C语言-等差数列-题解(C语言代码) 摘要:解题思路:开头设置sum为-1;取巧注意事项:i<n参考代码:int main(){ int i, n,m=0; int sum = -1; scanf("%d", &n); for (i = 0; …… 题解列表 2024年11月12日 0 点赞 0 评论 211 浏览 评分:0.0
string的find函数 #2304: 蓝桥杯2019年第十届省赛真题-特别数的和 摘要:``` #define _CRT_SECURE_NO_WARNINGS 1 #include #include #include #include #include #include …… 题解列表 2024年11月12日 0 点赞 0 评论 111 浏览 评分:0.0
[STL训练]百步穿杨........ 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体aaa,包含两个整数成员c和k struct aaa{ …… 题解列表 2024年11月12日 0 点赞 0 评论 123 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:把形成三角形的必要条件补充完整参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&…… 题解列表 2024年11月12日 0 点赞 0 评论 167 浏览 评分:0.0