东方不二
东方不二
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
东方不二的博客
全部文章
(共84篇)
题解 | #牛牛的素数和#
#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
8
题解 | #牛牛的短信#
#include <stdio.h> float PhoneBill(int num) { if (num > 60) { return 0.2; } return 0.1; } int main() { int num =...
2024-11-24
0
11
题解 | #[NOIP2010]数字统计#
#include <stdio.h> int count2(int x) { int sum = 0; while (x) { if (x%10 == 2) { sum++; } ...
2024-11-24
0
8
#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
8
题解 | #数位五五#
#include <stdio.h> int UnitSum(int x) { int sum = 0; while(x) { sum += x % 10; x /= 10; } return sum; } i...
2024-11-24
0
10
题解 | #小乐乐计算函数#
#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
13
题解 | #简写单词#
#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
18
题解 | #字符串操作#
#include <stdio.h> int main() { int n = 0; int m = 0; scanf("%d %d",&n,&m); char arr[1000] = {0}; scanf(&...
2024-11-20
0
13
题解 | #竞选社长#
#include <stdio.h> int main() { char arr[1000]; gets(arr); int a = 0; int b = 0; int i = 0; while (arr[i] != '\0') ...
2024-11-20
0
10
题解 | #添加逗号#
#include <stdio.h> int main() { unsigned int num = 0; int arr[11] = {0}; scanf("%u",&num); int flag = 0; ...
2024-11-20
0
13
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页