HDU6023-Automatic Judge-简单模拟
来源:互联网 发布:linux切换工作目录 编辑:程序博客网 时间:2024/04/30 21:08
//传送门:http://acm.hdu.edu.cn/viewcode.php?rid=101&cid=772#include <iostream>#include <string.h>#include <stdio.h>#include <algorithm>#include <math.h>#include <vector>using namespace std;#define LL long long#define N 100005#define M 2005#define INF 0x3f3f3f3fconst double eps = 1e-10;/*注意:没AC的题不算罚时*/bool has[25];int cot[25];int main(){ int t; scanf("%d",&t); while(t--){ memset(has,0,sizeof(has)); memset(cot,0,sizeof(cot)); int tol = 0; int n,m; scanf("%d%d",&n,&m); int ans = 0; while(m--){ int a,b,c; string s; scanf("%d %02d:%02d",&a,&b,&c); cin>>s; a-=1000; if(has[a]) continue; if(s=="AC"){ tol++; has[a] = 1; ans += cot[a]*20 + b*60 + c; }else{ cot[a]++; } } cout<<tol<<" "<<ans<<endl; }}
1 0
- HDU6023-Automatic Judge-简单模拟
- HDU6023-Automatic Judge
- HDU6023 Automatic Judge
- hdu6023-Automatic Judge-2017中国大学生程序设计竞赛
- (HDU 6023 女生专场)Automatic Judge 简单模拟
- HDU 6023 Automatic Judge (模拟)
- Automatic Judge
- Automatic Judge
- HDU Automatic Judge
- hdoj 6023 Automatic Judge
- HDU 6023 Automatic Judge
- HDU 6023 Automatic Judge
- HDU 6023 Automatic Judge
- 6023 Automatic Judge
- 2017女生赛 1001 Automatic Judge【】
- 2017CCPC女生赛 Automatic Judge
- HDU 6023 Automatic Judge(水题)
- uva489 Hangman Judge (模拟)
- pthon爬虫(6)mongo数据库
- 堆排序
- jsp中,第一个方法中调用第二个含有ajax的方法时,第一次会不执行第二个方法。
- 入门微信公众平台开发
- Grails 对象关联映射 (GORM) 一
- HDU6023-Automatic Judge-简单模拟
- 通过ServiceManagement注册LaunchdDaemon
- Grails 对象关联映射 (GORM) 二
- Easy-27
- 设计模式之模板模式
- FZU1406 之 凯撒密码
- opencv实现自己的中值滤波
- jquery基础笔记
- 快速排序