当前位置:网站首页>Physiological cycle
Physiological cycle
2022-07-22 00:27:00 【To catty Hawthorn】
/*
Physiological cycle
Set up a k It's a good idea to use it as a recording variable
*/
#include<iostream>
#define MAXN 21252
using namespace std;
int main()
{
int p,e,i,d,k; //k Used to record the number of days in change
cin >> p >> e >> i >> d;
for(k = d + 1;(k - p) % 23;++k);
for(;(k - e) % 28;k += 23);
for(;(k - i) % 33;k += 28 * 23);
cout << k -d<<endl; // Notice that it's not k, The number of days from the given time is k-d
return 0;
}
边栏推荐
- zabbix5.0的安装与实现
- Jasperreports is incompatible with exceptions raised by higher versions of iText
- Reverse proxy haproxy
- Exness: the US index fell for three consecutive days, and the euro rebounded to digest the expectation of interest rate hike
- 三层交换机原理
- The organization mode of the process: link mode and index mode
- 四则运算表达式求值
- RAID的介绍与配置
- Byte practice precipitation
- N皇后
猜你喜欢
OSPF的路由控制和防环
2.Ansible中常用模塊
VRRP虚拟路由冗余协议
NAT网络地址转换协议
JasperReports配置中文字体
Intranet detection 2-powershell collects domain information & sensitive data / data / information collection and sorting
LVS load balancing + high availability
解决:2003-Cant connect to MySQL server on **** 以及use near ‘IDENTIFIED BY ‘*****‘ WITH GRANT OPTION‘ at
Oracle中Drop Table之后想恢复?来看这里[只要二步]
Part 03: SQL syntax tree parsing
随机推荐
Deploy lvs-nat cluster
重发布中的路由策略
CDH5安装Kerberos认证
VIM editor
solr部署以及ik中文分词案例
Several common login debugging methods
主机信息采集脚本
静态路由综合实验
Top and ifconfig commands
DataX environment deployment and test cases
OSPF和RIP
使用JasperReports时,报出 ReportExpressionEvaluationData 异常
FTP服务
Part 06: pooling Technology
93. 递归实现组合型枚举
The last step of QA robot implementation -- Code encapsulation and interface provision
Embedded Internet of things - learning and sharing
VRRP虚拟路由冗余协议
2. Modules communs dans ansible
DHCP服务与配置