HDU 6023 Automatic Judge (模拟)
来源:互联网 发布:淘宝上买代写靠谱吗 编辑:程序博客网 时间:2024/04/30 21:51
题目链接:点击打开链接
题目大意:就不讲了,能理解的,这个题没什么难度,就是在处理输入的时候我愣了一下……
代码如下:
#include<iostream>#include<cstdio>#include<string.h>using namespace std;int vis[15],time[15];int main(){ int T,n,m,A,B,a,h,mi; char str[5]; scanf("%d",&T); while(T--) { scanf("%d%d",&n,&m); B=0; memset(vis,0,sizeof(vis)); memset(time,0,sizeof(time)); for(int i=1; i<=m; i++) { scanf("%d %d:%d %s",&a,&h,&mi,str); a%=1000; if(!vis[a]) if(strcmp(str,"AC")==0) { vis[a]=1; B+=h*60+mi+time[a]; } else { time[a]+=20; } else continue; } A=0; for(int i=1; i<=n; i++) { if(vis[i]) A++; } printf("%d %d\n",A,B); } return 0;}
~step by step
阅读全文
0 0
- HDU 6023 Automatic Judge (模拟)
- (HDU 6023 女生专场)Automatic Judge 简单模拟
- HDU 6023 Automatic Judge
- HDU 6023 Automatic Judge
- HDU 6023 Automatic Judge
- HDU 6023 Automatic Judge(水题)
- HDU Automatic Judge
- HDU6023-Automatic Judge-简单模拟
- hdoj 6023 Automatic Judge
- 6023 Automatic Judge
- Automatic Judge
- Automatic Judge
- HDU 1483 Automatic Correction of Misspellings (字符串大模拟)
- HDU Automatic Correction of Misspellings (复杂模拟题)
- HDU6023-Automatic Judge
- HDU6023 Automatic Judge
- UVA Automatic Poetry(模拟)
- 2017女生赛 1001 Automatic Judge【】
- XListView的使用方法
- Java如何进行Base64的编码(Encode)与解码(Decode)
- HAPPY训练赛——Complete the Word
- java语言递归实现快速排序
- Python基础-函数
- HDU 6023 Automatic Judge (模拟)
- 解决js处理Long类型丢失精度的问题
- 【51nod】1022 石子归并V2 区间DP
- Ubuntu 14.04下gedit出现“Gedit warning: GtkScrolledWindow..."问题解决方法
- POJ 3252 Round Numbers 数位DP
- 【状压DP】LibreOJ6177(美团 CodeM 初赛 Round B)[送外卖2]题解
- 拦截器
- 3-4竖式问题
- EntityManager方法简介