骏马H
骏马H
全部文章
分类
题解(39)
归档
标签
去牛客网
登录
/
注册
骏马H的博客
全部文章
(共42篇)
题解 | #小乐乐改数字#
">int main(){ int n = 0; scanf("%d",&n);//输入 int x = 0; int a[9] = {0};//存储整数某位的奇为1,偶数为0,因为0=<n<=10的9次方 int i = 0;//数组下标...
C
数组
2022-06-03
0
302
题解 | #小乐乐排电梯#
">int main(){ int n = 0; scanf("%d",&n); if(n<12) printf("%d\n",2); if(n >= 12) { printf("%d\n",4*(n/12)...
C
2022-06-03
3
302
题解 | #小乐乐定闹钟#
">int main(){ int hour = 0; int minute = 0; int k = 0; scanf("%d:%d %d",&hour,&minute,&k); if(minute+k%60>=60){ ...
C
2022-06-01
0
322
题解 | #牛牛的球#
">int main(){ int r = 0; float v = 0; scanf("%d",&r); v = 4.0f/3.0f*3.14*r*r*r;//体积 printf("%.2f",v); return 0; }
C
2022-06-01
0
294
题解 | #牛牛的等差数列#
">int main(){ int a = 0; int b = 0; scanf("%d %d",&a,&b); int c = 0;//第三项 c = b+(b-a);//第三项等于第二项加公差,公差等于第二项减去第一项 print...
C
2022-06-01
0
264
题解 | #牛牛的水杯#
#include<stdio.h> int main(){ //1L水=1000立方厘米 //10L水=10000立方厘米 //一杯水的体积为s*h //s = Π*r*r; float s = 0; float v = 0; ...
C
2022-06-01
0
354
题解 | #牛牛的并联电路#
#include<stdio.h> int main(){ float r1 = 0; float r2 = 0; &nb...
C
2022-06-01
0
346
题解 | #牛牛的圆#
#include<stdio.h> int main(){ float r = 0; float pi = 3.14; &...
C
2022-06-01
0
279
题解 | #KiKi和酸奶#
#include<stdio.h> int main(){ int n = 0; int h = 0; &nb...
C
2022-06-01
0
276
题解 | #统计成绩#
#include<stdio.h> int main(){ int n = 0; i...
C
2022-05-31
0
318
首页
上一页
1
2
3
4
5
下一页
末页