作者:yunjinqi 类别:
日期:2023-05-31 11:47:31 阅读:395 次 消耗积分:0 分
#include<stdio.h> #include<math.h> // 参考别人答案 int main(){ int count=0,a=0,sum=0,b=0; //count 是用来记录每个单词的长度 ...
作者:yunjinqi 类别:
日期:2023-05-31 11:45:05 阅读:405 次 消耗积分:0 分
#include <stdio.h> int gcd(int a,int b) { if(a<b) return gcd(b,a); if(a%b==0) return b; else gcd(b,a%b); } int main(){ int a,b; if (scan...
作者:yunjinqi 类别:
日期:2023-05-31 11:42:29 阅读:425 次 消耗积分:0 分
#include <stdio.h> #include <math.h> int main(){ int n,count=0; if (scanf("%d",&n)!=EOF){ int s = sqrt(n); ...
作者:yunjinqi 类别:
日期:2023-05-31 11:39:34 阅读:400 次 消耗积分:0 分
#include <stdio.h> int main(){ int n; int num; int count=0; if (scanf("%d",&n)!=EOF){ // 计算150,分配给5,...
作者:yunjinqi 类别:
日期:2023-05-31 11:37:17 阅读:420 次 消耗积分:0 分
#include <stdio.h> int main(){ int year,hour; double money; if (scanf("%d %d",&year,&hour)!=EOF){ //printf("%d %d\...
作者:yunjinqi 类别:
日期:2023-05-31 11:35:54 阅读:410 次 消耗积分:0 分
#include <stdio.h> #include <math.h> int main(){ int x=3,y=x*x; printf("%d = %d * %d\n",y,x,x); printf("%d * %d = %d\n",x,x,y...
作者:yunjinqi 类别:
日期:2023-05-31 11:33:03 阅读:397 次 消耗积分:0 分
#include <stdio.h> #include <math.h> int main(){ int n,m; int min_value; if (scanf("%d",&n)!=EOF){ // 计算150,分配...
作者:yunjinqi 类别:
日期:2023-05-31 11:28:57 阅读:392 次 消耗积分:0 分
#include <stdio.h> #include <math.h> int main(){ int n; double sum=0.0; if (scanf("%d",&n)!=EOF){ // 计算150,分配...
作者:yunjinqi 类别:
日期:2023-05-31 11:26:44 阅读:401 次 消耗积分:0 分
#include <stdio.h> int main(){ int num; int count=0; while (scanf("%d",&num)!=EOF){ // 计算运算结果 ...
作者:yunjinqi 类别:
日期:2023-05-31 11:24:21 阅读:404 次 消耗积分:0 分
这道超级简单的题目没有任何输入。你只需要在第一行中输出程序员钦定名言“Hello World”,并且在第二行中输出更新版的“Hello New World”就可以了。#include <stdio.h> i...