摘要:
统计每个月兔子的总数_牛客题霸_牛客网 (nowcoder.com) #include <iostream> using namespace std; int main() { //1 1 2 3 5 8 //这道题本质就是斐波那契数列 //先排除1 1 2 这些不用算的 int n; cin>>n 阅读全文
摘要:
杨辉三角的变形_牛客题霸_牛客网 (nowcoder.com) #include <iostream> using namespace std; int main() { //这个树的偶数规律为 -1 -1 2 3 2 4 2 3 2 4 int n=0; cin>>n; if(n<=2) { co 阅读全文
摘要:
扑克牌大小_牛客题霸_牛客网 (nowcoder.com) #include <iostream> #include<string> #include<algorithm> using namespace std; string op(const string& line) { if (line.f 阅读全文
摘要:
手套_牛客题霸_牛客网 (nowcoder.com) class Gloves { public: int findMinimum(int n, vector<int> left, vector<int> right) { int sum=0; int left_sum = 0, left_min 阅读全文