题解列表

筛选

题解 1093: 字符逆序

摘要:参考代码:#include<stdio.h>#include<stdlib.h>int main(){  char str[101];  scanf("%[^\n]",&str);  int l;  ……

1009: [编程入门]数字的处理与判断。不用数组

摘要:解题思路:通过乘方再取余获得最高位和去掉最高位、动态控制位宽注意事项:逐位输出用count(位数)作为判断表达式,别用 i(当前值) 参考代码:#include <stdio.h> #include……

1023: [编程入门]选择排序

摘要:解题思路:注意事项:多次标注长度的我习惯用宏,方便修改参考代码:#include <stdio.h> #define LEN 10 int main(){ int arr[LEN]; fo……

1017: [编程入门]完数的判断

摘要:解题思路:嵌套循环逐个判断注意事项:重置sum、count!!!!!!参考代码:#include <stdio.h> int main() { //输入值、当前值、总和、下标计数器、公因数数组 ……

编写题解 1083: Hello, world!

摘要:参考代码:#include<stdio.h>#include<stdlib.h>int main(){  int x;  while(scanf("%d",&x)!=EOF)  {      prin……

示例能过莫名错误的来(c++)

摘要:解题思路:混沌思路,小白勿喷注意事项:1.数据大 用long long2.注意输入10 1 的情况 掉换i j3.i<j 时 调换后输出时也要先输出大的 即 10 1————10 1 204.最好在输……

C++三个字符串的排序

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <cstring>#include <cmath>#include <cs……