江天祺
江天祺
全部文章
分类
归档
标签
去牛客网
登录
/
注册
江天祺的博客
全部文章
(共32篇)
题解 | #牛牛学说话之-整数#
#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; cout<<x; return 0; } 不用long long!!!
2023-10-05
1
322
题解 | #小飞机#
#include <iostream> using namespace std; int main() { printf(" **\n **\n************\n************\n * *\n * *"); ...
2023-10-05
1
304
题解 | #Hello Nowcoder#
#include <bits/stdc++.h> using namespace std; int main() { cout<<"Hello Nowcoder!"; return 0; } ???不是hello world吗?
2023-10-05
1
263
题解 | #判断一个数是不是质数#
#include <bits/stdc++.h> using namespace std; int main() { int x; cin>>x; for(int i=2;i*i<=x;i++){ if(x%i==0){ ...
2023-10-05
1
221
题解 | #计算小球走过的路程和反弹高度#
#include<bits/stdc++.h> using namespace std; int main() { double x=0,y; int z; cin>>y>>z; x=-y; for(int i=1;i<...
2023-10-05
1
259
题解 | #规律数列求和#
#include <iostream> using namespace std; int main(){ cout<<11111111100; return 0; } 老样子,打表。
2023-10-04
3
208
题解 | #打印乘法表#
#include <iostream> using namespace std; int main() { int x; cin>>x; for(int i=1;i<=x;i++){ for(int j=1;j<=i;j++...
2023-10-04
1
210
题解 | #输出水仙花数#
#include <iostream> using namespace std; int main() { cout<<153<<endl<<370<<endl<<371<<endl<<407; ...
2023-10-04
1
209
题解 | #计算一个数的阶乘#
#include <iostream> using namespace std; int main() { long long x,y=1; cin>>x; for(int i=x;i>1;i--){ y*=i; } ...
2023-10-04
1
204
题解 | #求 1 - n 之间偶数的和#
#include <iostream> using namespace std; int main() { int n; cin >> n; int sum = 0; sum=(n/2+1)*n/2; cout ...
2023-10-04
1
308
首页
上一页
1
2
3
4
下一页
末页