题解列表

筛选

1670: 拆分位数

摘要:解题思路:使用数组注意事项:参考代码:int i,b,a[3]={0};    scanf("%d",&b);    for(i=0;i<3;i++){    a[i]=b%10;    b/=10;……

题解 2783: 判断是否为两位数

摘要:解题思路:if 判断注意事项:条件参考代码:       int a;    scanf("%d",&a);    if(a>10&&a<99)    printf("%d",1);    else ……

题解 3000: 交换值

摘要:解题思路:简单一点注意事项:参考代码:     int a,b;    scanf("%d %d",&a,&b);    printf("%d %d",b,a);        return 0;……

2839: 石头剪刀布

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int na,nb,n,i;    int a1=0,b1=0;//记……

高质量的大象喝水

摘要:解题思路:注意事项:ceil是在有小数的情况下向上取整参考代码:#include#define PI 3.14159265358979323846int main() {    int h, r;  ……

新手必看,苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,y; scanf("%d %d %d",&n,&x,&y); int e=y/x; i……

电报加密(一看就会)

摘要:解题思路:直到b==&#39;\n&#39;才结束循环注意事项:b的值参考代码:#include<stdio.h> int main(){ char b; int i=0; while(……

2757: 浮点数向零舍入题解

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; double round(double r) ……

c语言,非常简单的,

摘要:解题思路:a/2算反弹高度   同时a/2后乘以2为单次经历的路程注意事项:参考代码:#include<stdio.h>int main(){    double a,b,i,t,sum=0;    ……