作者:yunjinqi   类别:    日期:2023-05-31 16:26:50   阅读:99 次   消耗积分:0 分
#include <stdio.h> int main(){     int n;     if (scanf("%d",&n)!=EOF){         // 计算150,分配给5,2,1,总数得是100         for ...
作者:yunjinqi   类别:    日期:2023-05-31 16:24:42   阅读:104 次   消耗积分:0 分
#include <stdio.h> int main() { int n,m,a1=0,a2=0,a3=0,sum=0; if (scanf("%d", &n)!=EOF){         for(int i=1;i<=n;i++){             if...
作者:yunjinqi   类别:    日期:2023-05-31 16:21:17   阅读:110 次   消耗积分:0 分
#include <stdio.h> double cal_n(int n){     double sum=1.0;     if (n==0){return 0;}     if (n>=1){         for (int i=1;i<=n;i++){ ...
作者:yunjinqi   类别:    日期:2023-05-31 11:52:25   阅读:109 次   消耗积分:0 分
#include <stdio.h> int is_prime(int a){     for (int i=2;i<a;i++){         if (a%i==0){return 0;}     }     return 1; } int main(){ ...
作者:yunjinqi   类别:    日期:2023-05-31 11:50:12   阅读:106 次   消耗积分:0 分
#include <stdio.h> int main(){     int a,b,N;     int j_han,j_hua,y_han,y_hua;     int j_d=0,y_d=0;     if (scanf("%d %d",&a,&b)!=EOF){  ...
作者:yunjinqi   类别:    日期:2023-05-31 11:47:31   阅读:110 次   消耗积分: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   阅读:124 次   消耗积分: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   阅读:120 次   消耗积分: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   阅读:113 次   消耗积分: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   阅读:108 次   消耗积分:0 分
#include <stdio.h> int main(){     int year,hour;     double money;     if (scanf("%d %d",&year,&hour)!=EOF){         //printf("%d %d\...
上一页   1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   下一页