数字的处理与判断 摘要:解题思路:转化为字符串问题注意事项:字符串反转,双指针参考代码:#include<bits/stdc++.h>using namespace std;string ver(string s){//反转…… 题解列表 2024年10月19日 0 点赞 0 评论 350 浏览 评分:0.0
寻梦之C++解题 摘要:#include<iostream> #include<string> using namespace std; int main() { int n; string s1, s2;…… 题解列表 2024年10月19日 0 点赞 0 评论 174 浏览 评分:0.0
写短一点点 摘要:解题思路:直接输出注意事项:Hello, World!。”,“后面有一个空格要带上,”!“也不要省,建议直接复制粘贴题目的Hello, World!参考代码:#include"stdio.h"main…… 题解列表 2024年10月19日 2 点赞 0 评论 646 浏览 评分:0.0
小小练手(自学菜鸡版) 摘要:解题思路:如下注意事项:注意左对齐,(作者用了判断语句,但其实用%2.d最好了)参考代码:#include <stdio.h>int main(){ int a,b,c; for(a =1; a<10…… 题解列表 2024年10月19日 0 点赞 0 评论 707 浏览 评分:0.0
求平均工资 摘要:参考代码:n=int(input()) nn=n sum=0 while n!=0: a=int(input()) sum+=a n-=1 print(sum//…… 题解列表 2024年10月19日 0 点赞 0 评论 528 浏览 评分:0.0
2818 while解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int x,y; scanf("%d",&a); x=a; whil…… 题解列表 2024年10月19日 0 点赞 0 评论 316 浏览 评分:0.0
亲和数c++语言 摘要:#include<iostream> using namespace std; int Yue(int n) { int sum = 0; for (int i = 1; i < n;…… 题解列表 2024年10月19日 0 点赞 0 评论 223 浏览 评分:0.0
只能说无意义的埋坑 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string s; // cin>>s;有一个点…… 题解列表 2024年10月20日 0 点赞 1 评论 519 浏览 评分:0.0
最简单的解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int arr[9]; for (int i = 0; i < 9; i++) { scanf("%d",…… 题解列表 2024年10月20日 0 点赞 0 评论 341 浏览 评分:0.0
小卡拉米的示例 摘要:解题思路:注意事项:仔细一点就好了参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); int d; for(int i =…… 题解列表 2024年10月20日 0 点赞 0 评论 443 浏览 评分:0.0