首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
忆水寒
宁波大学
2017届
C++工程师
颓废躺~
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(203)
字符串连接
0
#include<iostream> #include<string> using namespace std; int main() { string str1,str2; while(cin>>str1>>str2) { ...
发表于 2016-08-12 15:23:11
最大公约数
2
//最近闲的慌,跑来刷考研题目,O(∩_∩)O哈哈~ #include<iostream> using namespace std; int gcd(int m,int n) { return ((m>=n)?(m%n==0?n:gcd(n,m%n)):(n%m==0?m:...
发表于 2016-08-12 15:20:24
素数判定
1
//大家好,我是yishuihan; #include<iostream> #include<cmath> using namespace std; bool isPrime(int number) { if(number<=1) return false; ...
发表于 2016-08-12 15:15:11
不要二
0
//大家好,我是yishuihan /*发现这个解法很有意思,分享一下; #include <stdio.h> intmain() { intc[1004][1004]; //将网格上下左右都向外扩张2格 inta, b, i,...
发表于 2016-08-12 11:30:55
跳台阶扩展问题
0
//大家好,我是yishuihan # -*- coding:utf-8 -*- class Solution: def jumpFloorII(self, number): # write code here if number==1 or number==...
发表于 2016-08-12 10:51:10
吃糖果
0
#include<iostream> using namespace std; int main() { int arr[21]={0,1,2}; for(int i=3;i<=20;i++) { arr[i]=arr[i-1]+arr[i...
发表于 2016-08-12 10:50:09
斐波那契数列
0
//大家好,我是yishuihan # -*- coding:utf-8 -*- class Solution: def Fibonacci(self, n): # write code here if n==0: return 0 ...
发表于 2016-08-12 10:45:14
二维数组中的查找
0
//大家好,我是yishuihan int row=array.size();//行数 int col=array[0].size();//列数 if(row<=0 || col<=0 ) return false; int i=0;//...
发表于 2016-08-12 10:43:41
第k个数
1
//思路1:题目说保证K小于100,所以就用暴力法写一下了。 class KthNumber { public: int findKth(int k) { // write code here int count=0; int i=3; ...
发表于 2016-08-12 09:40:07
机器人走方格I
1
//大家好,我是yishuihan class Robot { public: int countWays(int x, int y) { // write code here if(x+y>12) return 0; vector<v...
发表于 2016-08-11 21:14:59
首页
上一页
4
5
6
7
8
9
10
11
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题