东方不二
东方不二
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
东方不二的博客
全部文章
(共87篇)
题解 | #两数求和#
#include <iostream> using namespace std; int main() { int a = 0; int b = 0; cin >> a >> b; cout << a + b <...
2024-12-07
0
46
题解 | #实现四舍五入#
#include <iostream> using namespace std; int main() { double a; while (cin >> a) { // 注意 while 处理多个 case if (a > ...
2024-12-07
0
31
题解 | #定义变量#
#include <iostream> using namespace std; int main() { char ch; int num; long lon; double doub; cout << sizeof(ch) &l...
2024-12-07
0
46
题解 | #牛牛的素数和#
#include <stdio.h> #include <math.h> int IsprimeNum(int num) { for (int i = 2; i <= (int)sqrt(num); i++) { if (num % i...
2024-11-24
0
33
题解 | #牛牛的短信#
#include <stdio.h> float PhoneBill(int num) { if (num > 60) { return 0.2; } return 0.1; } int main() { int num =...
2024-11-24
0
40
题解 | #[NOIP2010]数字统计#
#include <stdio.h> int count2(int x) { int sum = 0; while (x) { if (x%10 == 2) { sum++; } ...
2024-11-24
0
46
#The Biggest Water Problem#
#include <stdio.h> int UnitSum(int x) { int sum = 0; while (x) { sum += x % 10; x /= 10; } return sum; } ...
2024-11-24
0
24
题解 | #数位五五#
#include <stdio.h> int UnitSum(int x) { int sum = 0; while(x) { sum += x % 10; x /= 10; } return sum; } i...
2024-11-24
0
39
题解 | #小乐乐计算函数#
#include <stdio.h> int Max3(int x, int y, int z) { int temp = x; if (y > temp) { temp = y; } if (z > temp) ...
2024-11-24
0
34
题解 | #简写单词#
#include <stdio.h> int main() { char arr[100000] = {0}; gets(arr); int i = 0; while (arr[i] != '\0') { if (i == 0) ...
2024-11-20
0
41
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页