题解列表

筛选

字符串去掉空格

摘要:解题思路:注意事项:参考代码:#include<string.h>去掉空格int main(){ int i; int j = 4; int n; char arr[1000]; while (j) ……

进制转换——除基取余(C)

摘要:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    int ans[31],num=0;//ans存放8进制的每一位  ……

1480: 模拟计算器

摘要:解题思路:注意事项:参考代码:while True:    try:        a, b, c = map(str, input().split())        if (c == &#39;+……

回文串-字符串处理(C++)

摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256;   //判断字符串str是否是“回文串”bool judge(char str[……

编写题解 1231: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() {   int n, i, j;   int a[30][30];   while (scanf("%……

Tom数(水题)

摘要:```c #include int main(){ long long n,sum,i; while(scanf("%lld",&n)!=EOF){ sum=0; ……