摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int N=1e4; 4 int A[N],W[N],num[10]={0,1,2,-1,-1,5,9,-1,8,6}; 5 int change(int x){ 6 int a=x% 阅读全文
posted @ 2020-03-02 20:19 墨鳌 阅读(248) 评论(0) 推荐(0)
摘要: 这么水的题,唉,三种方法花式过,考的是思维吧?滑稽 1 #include <iostream> 2 using namespace std; 3 int dp[10][10]; 4 int f(int x,int y){ 5 if(x==1||y==1)return 1; 6 return f(x- 阅读全文
posted @ 2020-03-02 19:17 墨鳌 阅读(243) 评论(0) 推荐(0)
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 bool vis[15]; 4 bool check(long long a,long long b){ 5 memset(vis,0,sizeof(vis)); 6 while(a) 7 if( 阅读全文
posted @ 2020-03-02 16:44 墨鳌 阅读(254) 评论(0) 推荐(0)
摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 bool Check(int y){return (y%4==0&&y%100)||(y%400==0);} 4 void calc(int Y,int M,int D,int x){ 5 int 阅读全文
posted @ 2020-03-02 16:27 墨鳌 阅读(231) 评论(0) 推荐(0)
摘要: 1 /* 2 3 购物清单 4 5 小明刚刚找到工作,老板人很好,只是老板夫人很爱购物。 6 老板忙的时候经常让小明帮忙到商场代为购物。 7 小明很厌烦,但又不好推辞。 8 9 这不,XX大促销又来了!老板夫人开出了长长的购物单,都是有打折优惠的。 10 小明也有个怪癖,不到万不得已,从不刷卡,直接 阅读全文
posted @ 2020-03-02 13:23 墨鳌 阅读(390) 评论(0) 推荐(0)
摘要: 1 #include <cstdio> 2 int a[10],copy[10],cnt,ans,flag; 3 bool check(){ 4 int sum=a[1]+a[2]+a[3]; 5 if(sum!=a[4]+a[5]+a[6])return false; 6 if(sum!=a[1] 阅读全文
posted @ 2020-03-02 11:09 墨鳌 阅读(328) 评论(0) 推荐(0)