1009: [编程入门]数字的处理与判断 摘要:解题思路:这道题最简单的做法就是字符串,直接用size输出长度,然后用两个循环正序和倒叙输出字符串。注意事项:注意字符串从0开始。参考代码:#include<bits/stdc++.h>using n…… 题解列表 2022年05月13日 0 点赞 1 评论 430 浏览 评分:9.9
C++处理数字位数与输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b[5],c; cin >> a; if (a / 100…… 题解列表 2022年05月12日 0 点赞 0 评论 174 浏览 评分:0.0
[编程入门]数字的处理与判断c++ 摘要:解题思路:分别求出它是几位数,输出每一位数字,按逆序输出各位数字注意事项:顺序不要混了参考代码:#include<iostream>#include<fstream>#include<algorith…… 题解列表 2022年05月09日 0 点赞 0 评论 264 浏览 评分:9.9
数字的处理与判断 题解(c++字符串超简单) 摘要:解题思路:这题就纯属拆分,但也可以用字符串,我在这里只展示字符串的写法。注意:比赛时建议用拆分数字,按题目输入要求。注意事项:无。参考代码:#include<bits/stdc++.h>using n…… 题解列表 2022年05月08日 0 点赞 0 评论 169 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:#include<iostream> using namespace std; int main() { int num[5]; //定义一个有 5 个元素的数组 int …… 题解列表 2022年05月07日 0 点赞 0 评论 177 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; cout<<s.si…… 题解列表 2022年05月07日 0 点赞 0 评论 157 浏览 评分:0.0
1009: [编程入门]数字的处理与判断(C++清爽版) 摘要:解题思路:清爽的代码注意事项:注意数据不要越界参考代码:#include<iostream> #include<cstring> using namespace std; int main() …… 题解列表 2022年04月20日 0 点赞 1 评论 258 浏览 评分:9.9
用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 320 浏览 评分:9.9
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,i,k=0,g; cin>>x; g=x; fo…… 题解列表 2022年03月25日 0 点赞 0 评论 212 浏览 评分:9.9
如何用for循环解决数字的处理与判断 摘要:解题思路:很简单,相信各位程序员们看完代码一目了然!注意事项:for循环和数组的使用参考代码:#include <iostream>using namespace std;int main(){ in…… 题解列表 2022年03月13日 0 点赞 0 评论 249 浏览 评分:0.0