[STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 207 浏览 评分:0.0
可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 167 浏览 评分:0.0
容易写到的直接解法pow()解释,代码逻辑非常简单 摘要:解题思路:直接pow( )注意事项:long long int 的最大值:9223372036854775807double 最大值:1.8 乘以 10 的308 次方2的一百次方等于12676506…… 题解列表 2024年11月11日 0 点赞 0 评论 276 浏览 评分:0.0
3岁都能看懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int k; scanf("%d", &k); if (k == 1 || k =…… 题解列表 2024年11月11日 0 点赞 0 评论 541 浏览 评分:9.0
注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 177 浏览 评分:0.0
[STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a;…… 题解列表 2024年11月12日 0 点赞 0 评论 216 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:```c #include struct a { char a[30]; char b[30]; //结构体 int c; int d; int e; }…… 题解列表 2024年11月12日 1 点赞 0 评论 518 浏览 评分:9.9
字符串最大跨距(指针方法) 摘要:解题思路:使用strstr函数反复查找寻找到字符串最后出现的位置,最后利用指针相减的特性求出跨距。注意事项:注意录入数据时的格式;注意strstr查找不到字符串时会返回空指针(NULL);重复查找时注…… 题解列表 2024年11月12日 0 点赞 0 评论 284 浏览 评分:9.9
试了下另一个选项 摘要:解题思路:题目也说了,但好奇试了下,输出no,不行。注意事项:参考代码:#include<studio.h>int main(){ printf("yes"); return…… 题解列表 2024年11月12日 0 点赞 0 评论 161 浏览 评分:9.9
屎盆子镶金边教程!!!!! 摘要:#include <stdio.h>#include <string.h>int main() { char part1[] = "Hello "; // 前一段字母,注意这里有个空格 …… 题解列表 2024年11月12日 0 点赞 1 评论 160 浏览 评分:9.9