hello_world5
hello_world5
全部文章
分类
归档
标签
去牛客网
登录
/
注册
hello_world5的博客
全部文章
(共8篇)
题解 | #补全构造方法#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ...
2023-11-23
0
129
题解 | #验证年龄#
import java.util.Scanner; public class Main { public static void main(String[] args) { Person p = new Person(); Scanner scanner ...
2023-11-23
0
126
题解 | #牛牛的平面向量#
#include <stdio.h> struct A { int x; int y; }; int main() { int num=0,i=0,resx=0,resy=0; scanf("%d\n",&num); ...
2023-10-19
0
108
题解 | #牛牛的书#
#include <stdio.h> #include <string.h>//忘记哪个头文件了 不知道这个要不要加 #include <stdlib.h> typedef struct { char buf[24]; int price; }BO...
2023-10-19
2
115
题解 | #KiKi定义电子日历类#
#include <stdio.h> int main() { int Year,Month,Day; scanf("%d %d %d",&Year,&Month,&Day); printf("%d/%d/%...
2023-10-19
0
123
题解 | #KiKi设计类继承#
#include <stdio.h> #define PI 3.14 int rectangle(int length,int width) { return length*width; } float circle(int r) { return PI*r*r; } ...
2023-10-19
1
156
题解 | #牛牛的排序#
#include <stdio.h> void sort(int *array,int n){//冒泡排序 int i,j,temp; for(i=0;i<n;i++){ for(j=i+1;j<n;j++){ if(...
2023-10-18
0
121
题解 | #牛牛的新数组求和#
#include <stdio.h> #include <stdlib.h> int cal(int *array,int n) { int i=0,res=0; for(i=0;i<n;i++) { res+=*(array+...
2023-10-17
1
153