cf665a 简单模拟
来源:互联网 发布:win10安装ubuntu子系统 编辑:程序博客网 时间:2024/05/29 09:53
/**********************jibancanyang************************** *Author :jibancanyang *Created Time : 三 4/20 22:59:56 2016 *File Name : cf665a.cpp *Problem: *Get:认真读题***********************1599664856@qq.com**********************/#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <vector>#include <queue>#include <set>#include <map>#include <string>#include <cmath>#include <cstdlib>#include <ctime>#include <stack>using namespace std;typedef pair<int, int> pii;typedef long long ll;typedef unsigned long long ull;vector<int> vi;#define pr(x) cout << #x << ": " << x << " " #define pl(x) cout << #x << ": " << x << endl;#define xx first#define yy second#define sa(n) scanf("%d", &(n))#define rep(i, a, n) for (int i = a; i < n; i++)#define vep(c) for(decltype((c).begin() ) it = (c).begin(); it != (c).end(); it++) const int mod = int(1e9) + 7, INF = 0x3fffffff, maxn = 1e5 + 12;int main(void){#ifdef LOCAL freopen("in.txt", "r", stdin); //freopen("out.txt", "w", stdout);#endif cin.sync_with_stdio(false); char f; int x, y; int a, ta, b, tb; cin >> a >> ta >> b >> tb; cin >> x >> f >> y; x = x * 60 + y; int l = x - tb + 1, r = x + ta - 1; int ans = 0; for (int i = 300; i <= 23 * 60 + 59; i += b) { if (i >= l && i <= r) ans++; } cout << ans << endl; return 0;}
0 0
- cf665a 简单模拟
- 简单模拟
- 简单模拟
- 简单模拟
- 简单模拟
- 模拟(1)--poj3087(简单模拟)
- 1.2 milk2 简单模拟
- 1.1 transform 简单模拟
- 模拟简单秒表
- 模拟简单秒表
- PHP简单模拟多线程
- POJ 2453 简单模拟
- POJ 2833 简单模拟
- 简单的模拟!!!
- CString类简单模拟
- 简单JPEG类模拟
- poj2328简单模拟
- poj2339- 简单模拟
- 我的第四次上机实验4-7之百钱百鸡问题
- MVC,MVP,MVVM的比较
- bzoj 4540: [Hnoi2016]序列
- [Magento SQL] 返回sku,price,specialPrice。排除可配置产品和已下架产品
- php生成器
- cf665a 简单模拟
- 密码学应用(DES,AES, MD5, SHA1, RSA, Salt, Pkcs8)
- STL容器的小总结
- OSI模型和TCP/IP网络模型
- Android 异步查询框架AsyncQueryHandler的使用
- php tcpdf error
- Laravel框架写的网站直接放在wampserver环境下路径错误问题
- iOS开发经验总结
- android studio遇到的问题。