fx_函数
fx_函数
全部文章
分类
归档
标签
去牛客网
登录
/
注册
fx_函数的博客
全部文章
(共53篇)
题解 | #字符个数统计#
#include <stdio.h> int main() { char arr[500]; scanf("%s",arr); int count = 0; char cmp[128] = {0}; int ret =0; ...
2024-04-20
0
163
题解 | #字符个数统计#
#include <stdio.h> int main() { char arr[500]; scanf("%s",arr); int count = 0; char cmp[500] = {0}; int ret =0; ...
2024-04-20
0
178
题解 | #环形链表的约瑟夫问题#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @param m int整型 * @return int整型 */ typedef struct ListNode ListNode; List...
2024-04-15
0
184
题解 | #序列中删除指定数字#
#include <stdio.h> int main() { int N = 0; scanf("%d",&N); int arr[N]; for(int i = 0;i < N;i++) { ...
2024-03-21
0
178
题解 | #变种水仙花#
#include <stdio.h> #include <math.h> int main() { for(int i = 10000;i <= 99999;i++) { int sum = 0; for(int j = ...
2024-03-21
0
190
题解 | #数字在升序数组中出现的次数#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param numsLen int nums数组长度 * @param k int整型 * @return int整型 */ in...
2024-03-05
0
212
题解 | #两个整数二进制位不同个数#
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case // 64...
2024-02-20
0
184
题解 | #二进制中1的个数#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return int整型 */ int NumberOf1(int n ) { // write code here int coun...
2024-02-20
0
174
题解 | #获得月份天数#
#include <stdio.h> int main() { int year, month; while (scanf("%d %d", &year, &month) != EOF) { // 注意 while 处理多个 case...
2024-02-16
0
153
题解 | #两个整数二进制位不同个数#
#include <stdio.h> int main() { int a = 0; int b = 0; int c = 0; scanf("%d %d",&a,&b); c = a ^ b; in...
2024-01-28
0
222
首页
上一页
1
2
3
4
5
6
下一页
末页