Evin0001
Evin0001
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Evin0001的博客
全部文章
/ 题解
(共14篇)
题解 | #二分查找-II#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 如果目标值存在返回下标,否则返回 -1 * @param nums int整型一维数组 * @param numsLen int nums数组长度 * @param target int整型 ...
C
2021-09-24
0
375
题解 | #求最小公倍数#
#include <stdio.h> int max(int a,int b) { return a>b ? a :b; } int min(int a,int b) { return a>b ? b :a; } int main() { int ...
C
2021-09-22
0
338
题解 | #密码强度等级#
#include <bits/stdc++.h> using namespace std; int main() { int i=0; int len=0; char str[300]; while(cin>>str) { ...
C++
2021-09-21
0
466
题解 | #二维数组操作#
#include <bits/stdc++.h> using namespace std; int main() { int a,b; int x1,y1,x2,y2,x3,y3; int row,col; while(cin>>a>&...
C++
2021-09-21
0
349
题解 | #记负均正#
#include <bits/stdc++.h> //#include <iomanip> using namespace std; int main() { int s[1000]; int i; int z=0,f=0; int nu...
C++
2021-09-21
0
401
题解 | #替换空格#
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return string字符串 */ char* replaceSpace(char* s ) { // write code h...
C
2021-09-21
3
599
题解 | #实践出真知#
#include <stdio.h> int main() { char s; scanf("%s",s); printf("Practice makes perfect!"); return 0; }
C
2021-09-20
4
918
题解 | #斐波那契数列#
/** * * @param n int整型 * @return int整型 */ #include <stdio.h> int get_count(int num) { if(num == 0) return 0; return num&g...
C
2021-09-20
1
408
题解 | #统计每个月兔子的总数#
#include <bits/stdc++.h> using namespace std; int counts(int m) { if (m == 1 || m == 2) return 1; return counts(m - 1) + counts...
C++
2021-09-20
2
487
题解 | #汽水瓶#
#include <stdio.h> int main() { int n; while(scanf("%d",&n)) { int k=0; if(n == 1 || n == 0) ...
C
2021-09-20
3
368
首页
上一页
1
2
下一页
末页