拿破仑plus
拿破仑plus
全部文章
分类
归档
标签
去牛客网
登录
/
注册
拿破仑plus的博客
全部文章
(共7篇)
题解 | 变种水仙花
#include <stdio.h> #include<math.h> int main() { int n; for(int n=10000;n<100000;n++){ //计算N的位数 int sum=0; ...
2025-03-01
0
37
题解 | 获得月份天数
#include <stdio.h> int main() { int year = 0; int month = 0; while (scanf("%d %d", &year, &month) != EOF) { ...
2025-02-15
0
60
题解 | 截取字符串
#include <stdio.h> int main() { char arr[1000]; int k=0; gets(arr); scanf("%d",&k); for(int i=0;i<k;i++) ...
2025-02-13
0
39
题解 | 寻找峰值
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param numsLen int nums数组长度 * @return int整型 */ int findPeakElement(int...
2025-02-13
0
45
题解 | 寻找奇数
#include <string.h> #include<stdio.h> int main() { int n = 0; scanf("%d",&n); int resault = 0; for(int...
2025-02-13
0
57
题解 | 数列的和
#include <stdio.h> #include <math.h> int main() { int m = 0; double n = 0.00; while (~scanf("%lf %d", &n, &m...
2025-02-11
0
57
题解 | 统计每个月兔子的总数
#include <stdio.h> int main() { int n; int arr[100]; arr[0]=0; int a=arr[1]=arr[2]=1; while (scanf("%d", &a...
2025-02-11
0
50