给我就亿下
给我就亿下
全部文章
分类
归档
标签
去牛客网
登录
/
注册
给我就亿下的博客
全部文章
(共47篇)
题解 | #对称平方数#
#include <iostream> using namespace std; bool isSymmetry (int n){ int a = 0, b = 0, x = n; while (n != 0){ a = n % 10; b = b * 10 + a; ...
2023-03-26
0
316
题解 | #学生查询#
#include <iostream> using namespace std; struct Student { int id; string name; string sex; int age; }; Student stu[21]; int main () { i...
2023-03-25
0
367
题解 | #整数和#
#include <iostream> using namespace std; int sum1 (int x){ //x>0 int sum = 0; for (int i = x; i <= 2 * x; i++){ sum += i; } return...
2023-03-25
0
346
题解 | #分段函数#
#include <iostream> using namespace std; float fun (float x){ if (x >= 0 && x < 2){ return -x + 2.5; }else if (x >=2 && x < 4)...
2023-03-25
0
307
题解 | #最大公约数1#
#include <iostream> #include <algorithm> using namespace std; int Divisor (int a, int b){ if (b == 0){ return a; }else if (b > a)...
2023-03-24
0
362
题解 | #最小年龄的3个职工#
#include <iostream> #include <algorithm> using namespace std; struct staff{ int id; string name; int age; }; staff s[31]; bool cmp(s...
2023-03-23
0
265
题解 | #平方因子#
#include <iostream> #include <cmath> using namespace std; int main () { int n; while (cin >> n){ if (n == 0){ break; } ...
2023-03-21
0
310
题解 | #求最大值#
#include <iostream> #include <limits.h> using namespace std; int main () { int current; int max = INT_MIN; for (int i = 0; i < 10;...
2023-03-19
0
326
题解 | #素数判定#
#include <iostream> #include <cmath> using namespace std; bool isPrim (int n){ if (n == 0 || n == 1){ return false; }else{ for (in...
2023-03-19
0
324
题解 | #互换最大最小数#
#include <iostream> #include <limits.h> using namespace std; int main () { int n; int arr[21]; int x = 0, y = 0; while (cin >>...
2023-03-19
0
371
首页
上一页
1
2
3
4
5
下一页
末页