牛客8888888888888888888888号
牛客8888888888888888888888号
全部文章
分类
题解(37)
归档
标签
去牛客网
登录
/
注册
牛客8888888888888888888888号的博客
全部文章
(共32篇)
题解 | #四季#
#include <stdio.h> int main(){ int y,m; scanf("%4d%2d",&y,&m); if(m>=3&&m<=5)printf("spring"); else if(m>=6&&m&...
C
2022-04-29
0
243
题解 | #判断闰年#
#include <stdio.h> int main(){ int n; scanf("%d",&n); if(n%100==0){ if(n%400==0)printf("yes"); else printf("no"); } else { if(n%4==0)printf(...
C
2022-04-29
1
382
题解 | #牛牛的判断题#
#include <stdio.h> int main(){ int x,l,r; scanf("%d%d%d",&x,&l,&r); if(x>=l&&x<=r){ printf("true"); } else printf("fal...
C
2022-04-29
1
267
题解 | #牛牛的线段#
#include <stdio.h> int main(){ int x1,y1,x2,y2; scanf("%d%d%d%d",&x1,&y1,&x2,&y2); printf("%d",(x1-x2)(x1-x2)+(y1-y2)(y1-y2)); r...
C
2022-04-29
1
254
题解 | #KiKi算期末成绩#
#include <stdio.h> int main(){ int s,k,g,q; scanf("%d%d%d%d",&s,&k,&g,&q); float z = 0.2s+0.1k+0.2g+0.5q; printf("%.1f",z); retu...
C
2022-04-29
1
285
题解 | #小乐乐改数字#
#include <stdio.h> #include <string.h> char a[12]; int main(){ scanf("%s",&a); int n = strlen(a); for(int i = 0;i<n;i++){ if((int)(...
C
2022-04-29
1
259
题解 | #小乐乐与欧几里得#
#include <stdio.h> int main(){ long long int n,m; scanf("%lld%lld",&n,&m); long long int y,b; b=n*m; while(m){ y=n%m; n=m; m=y; } b/=n; ...
C
2022-04-28
0
226
题解 | #小乐乐定闹钟#
#include <stdio.h> int main(){ int k; int hour,minute; scanf("%d:%d %d",&hour,&minute,&k); minute+=k; hour+=minute/60; hour%=24; min...
C
2022-04-27
0
240
题解 | #牛牛的水杯#
#include <stdio.h> int main(){ float h,r; scanf("%f%f",&h,&r); float n=101000.0/(3.14hrr); if(n>(int)n)printf("%d",(int)n+1); else pr...
C
2022-04-27
0
212
题解 | #统计成绩#
#include <stdio.h> float max( int n,float a[n]); float min( int n,float a[n]); float average(int n,float a[n]); int main () { int n; sca...
C
2021-10-27
0
427
首页
上一页
1
2
3
4
下一页
末页