题解列表
旧物有情 #2818: 分离整数的各个数位 字符串翻转法 和 模拟法
摘要:[TOC]
这道题目的数据范围比较弱,不存在类似于10000
这种需要我们考虑前导0的问题
不过大家可以思考一下如何去除前导0
# 字符串翻转法
```
#include
u……
写了这么大一坨,终于AC了!
摘要:参考代码:#include<bits/stdc++.h>
using namespace std;
string s1[3]={" "," |"," |"};
string s2[3]=……
学会找规律,这个题不复杂
摘要:参考代码:#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
while(cin>>n)
……
小小练手(自学菜鸡版)
摘要:解题思路:如下注意事项:注意左对齐,(作者用了判断语句,但其实用%2.d最好了)参考代码:#include <stdio.h>int main(){ int a,b,c; for(a =1; a<10……
2818 while解法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int x,y; scanf("%d",&a); x=a; whil……