题解列表

筛选

适合新手理解的c++

摘要:#include<iostream>using  namespace std;int main(){ int i,j,arr[10]; int start=0; int end=sizeof(arr)……

algorithm库是真好用

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(……

用C语言解题

摘要:解题思路:a.当输入的n是偶数时,做除以2操作 b.当输入的n是奇数时,做乘3加1操作 1.输入两个整数 i,j; 2.比较两个数的大小,从小到大循环,进行上述运算(a.b.) 3.统计i到j中每个数……

数字的处理与判断

摘要:#include<stdio.h> #include<math.h>//调用函数 int main() { int n,i,count=0; int a,c,d; int b,f……

1025: [编程入门]数组插入处理

摘要:解题思路:将输入的数据与数组中元素从前往后依次比较,找到位置记住输入数据该插入位置。将其后元素依次后移注意事项:注意0元素,参考代码此种情况单独讨论参考代码:#includeint main(){  ……

C语言代码 萨达十大good

摘要:解题思路:jiuzhe 注意事项:scanf ("|")         /*"|"也要写进去*/参考代码:#include <stdio.h>int main (){ int a;float b;c……

1668 C语言代码,good

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a; scanf ("%d",&a); printf("%#o %d %#x",a,a,a); re……

1806C语言代码,good

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){    int b;    scanf("%*d %d %*d",&b);    printf ("%d",b……

1807C语言代码,good

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf ("%-8d%-……