LOUIS_LIU
LOUIS_LIU
全部文章
题解
归档
标签
去牛客网
登录
/
注册
LOUIS_LIU的博客
全部文章
/ 题解
(共11篇)
题解 | #KiKi定义电子日历类#
很简单的题 ">using namespace std; class TDate{ public: TDate(int a=0,int b=0,int c=0){ this->year=a; this->mon=b; this-&g...
C++
2021-11-13
1
463
题解 | #KiKi设计类继承#
运行速率极快 ">using namespace std; #define pi 3.14 class shape{ public: private: double x; double y; }; class Rectangle:public shape { public: ...
C++
2021-11-13
0
443
题解 | #小乐乐计算函数#
">#include<algorithm> using namespace std; double max(double a,double b,double c){ double x[3]; x[0]=a,x[1]=b,x[2]=c; sort(x,x+3); ...
C++
2021-11-12
0
418
题解 | #小乐乐计算求和#
">using namespace std; int cauculate(int n){ int result=1; for(int i=1;i<=n;i++){ result*=i; } return result; } int main(){...
C++
2021-11-12
0
399
题解 | #小乐乐算平均分#
">using namespace std; int main(){ double a,b,c; cin>>a>>b>>c; printf("%.2f %.2f",a+b+c,(a+b+c)/3); return 0; }
C++
2021-11-11
0
435
题解 | #小乐乐走台阶#
#include<iostream> #include<math.h> using namespace std; int f(int n){ if(n==0||n==1) return 1; else return f(n-1)+f(n-2); } int m...
C++
2021-11-11
0
316
题解 | #小乐乐与欧几里得#
">using namespace std; /*void change(long long *a,long long *b){ long long *temp; if(a<b){ *temp=*a; *a=*b; *b=*tem...
C++
2021-11-11
0
384
题解 | #带空格直角三角形图案#
#include using namespace std; void tim(long long time,int hour,int min){ hour+=time/60; min+=time%60; if(min>=60){ hour+=min/60; min=min%60; } if(h...
C
2021-11-11
0
359
题解 | #带空格直角三角形图案#
the str in line 1 almost drives me crazy.fortunately,adding 'else'in functin has solve the problem #include<stdio.h> int main(){ int x; while(sc...
C
2021-11-02
2
444
题解 | #正方形图案#
#include<stdio.h> int main(){ int x; while(scanf("%d",&x)!=EOF){ for(int i=1;i<=x;i++){ for(int j=1;j<=x;j++){ ...
C
2021-11-02
5
631
首页
上一页
1
2
下一页
末页