- 博客(5)
- 收藏
- 关注
原创 201503-3节日
思路: 第一步,计算1850年到起始年的天数days, 第二步, 计算从1850年开始,到i年a月1日的天数days2 第三步,知道了某月第一天是星期几的基础上,计算i年的a月第b个星期c是当月的几号d = (b-1) * 7 + ((weekd >= c) ? (c + 7 - weekd) : (c - weekd)); #include <iostream> usin...
2020-03-15 12:24:36 79
原创 20170902公共钥匙盒
#include<bits/stdc++.h> using namespace std; struct Key{//定义Key类 int num;//钥匙编号 int time;//当前时间 bool borrow;//表示是取钥匙还是还钥匙 ,true表示取,false表示还 Key(int n,int t,bool b):num(n),time(t),borrow(...
2020-03-08 18:27:14 66
原创 20160902火车购票
#include<bits/stdc++.h> using namespace std; int main(){ int a[20];//每排剩余座位数 for(int i=0;i<20;++i) a[i]=5;//初始化为5 int N; scanf("%d",&N); while(N--){ in...
2020-03-08 18:27:04 69
原创 2013-12 ISBN号码
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int main() { string s; cin>>s; int sum=0,cnt=1; f...
2020-03-08 18:18:13 88
原创 2014-03 窗口
#include<iostream> #include<cstdio> using namespace std; struct win { int x1,y1; int x2,y2; }a[10]; int main() { int n,m,b[10]; cin>>n>>m; for(int i=0;i<n;i++) { b[i...
2020-03-08 17:40:11 83
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人