HDU6023Automatic Judge(水)
来源:互联网 发布:淘宝种子暗语 编辑:程序博客网 时间:2024/06/03 14:45
#include<cstdio>#include<iostream>#include<cstring>#include<string.h>using namespace std;int vis[1110];int cnt[1110];int main(){int t;int hh,mm;int n,m;int x;char s[10];int ts,tt;scanf("%d",&t);while(t--){ts=0;tt=0;memset(vis,0,sizeof(vis));memset(cnt,0,sizeof(cnt));scanf("%d%d",&n,&m);for(int i=0;i<m;i++){scanf("%d %d:%d %s",&x,&hh,&mm,s);if(vis[x]!=1){if(s[0]=='A'&&s[1]=='C'){ts++;tt+=cnt[x]*20+hh*60+mm;vis[x]=1;}else{cnt[x]++; } }}printf("%d %d\n",ts,tt);}}
阅读全文
0 0
- HDU6023Automatic Judge(水)
- judge
- Judge
- HDU 1073 Online Judge(水~)
- HDU ACM 1073 Online Judge ->字符串水题
- hdoj 1073 online judge (刻骨铭心的水题)
- Online Judge
- Hangman Judge
- Online Judge
- Hangman Judge
- Hangman Judge
- Hangman Judge
- Hangman Judge
- Hangman Judge
- HDU_1073Online Judge
- Online Judge
- Online Judge
- Hangman Judge
- 联想笔记本安装ubuntu,无线网卡被禁用的问题及解决方法
- 亲测解决Vmware12中Ubuntu14.04占用空间大的问题
- goroutine背后的系统知识
- C++类中单链表的实现(头插、尾插、头删、尾删、指定位置插入、指定位置删除、链表长度、清空链表、链表排序)
- CSDN无法写博客的问题
- HDU6023Automatic Judge(水)
- HDU
- AC自动机以及KMP模板
- JAVA中的注释
- Python面试题
- 群居影响力
- LVS-NAT
- WPF 使用匿名类作为显示的Model
- 浙江中医药大学暑期训练测试赛八G