编写题解 1009: [编程入门]数字的处理与判断
摘要:解题思路:注意事项:参考代码:a=input('')
print(len(a))
for i in a:
print(i,end=' ')
print(……
[编程入门]数字的处理与判断
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; cout<<s.si……
编写题解 1009: [编程入门]数字的处理与判断
摘要:#include<iostream>
using namespace std;
int main()
{
int num[5]; //定义一个有 5 个元素的数组
int ……
数字的处理与判断 题解(c++字符串超简单)
摘要:解题思路:这题就纯属拆分,但也可以用字符串,我在这里只展示字符串的写法。注意:比赛时建议用拆分数字,按题目输入要求。注意事项:无。参考代码:#include<bits/stdc++.h>using n……
1009: [编程入门]数字的处理与判断
摘要:import java.io.*;
/**
* 读进来数字,再转换成 String、StringBuffer(可以反转)、char[](每位数字)
*/
public class ……
C++处理数字位数与输出
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b[5],c; cin >> a; if (a / 100……
[编程入门]数字的处理与判断-两个for循环
摘要:解题思路:构造一个求位数的函数,得到位数,利用求余,除法求出倒数等注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>i……
[编程入门]数字的处理与判断
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string n;int main(){ cin>>n; cout<<n.size……
1009: [编程入门]数字的处理与判断
摘要:#include<stdio.h>
int main()
{
char st[5],c,i=0;
c=getchar();
int k=5;
while(k--){
st[i++]……