Codeforces 493A Vasya and Football(水)
来源:互联网 发布:python py2exe 安装 编辑:程序博客网 时间:2024/05/28 16:20
题目链接:Codeforces 493A Vasya and Football
#include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int maxn = 105;const int inf = 0x3f3f3f3f;int N, C[2][maxn];int main () {char name[2][30], team[30], card[30];scanf("%s%s", name[0], name[1]);scanf("%d", &N);int t, num, s, f;for (int i = 0; i < N; i++) {scanf("%d%s%d%s", &t, team, &num, card);s = (team[0] == 'h' ? 0 : 1);f = (card[0] == 'y' ? 1 : 2);C[s][num] += f;if (C[s][num] >= 2) {printf("%s %d %d\n", name[s], num, t);C[s][num] = -inf;}}return 0;}
0 0
- Codeforces 493A. Vasya and Football 水
- Codeforces 493A Vasya and Football(水)
- CodeForces-493A.Vasya and Football
- 493A Vasya and Football
- A. Vasya and Football
- A Vasya and Football
- A. Vasya and Football
- codeforce 493A Vasya and Football
- Codeforces Round #281 (Div. 2) A. Vasya and Football
- Codeforces Round #281 (Div. 2) A - Vasya and Football
- #281 (div.2) A.Vasya and football
- codeforces493 A. Vasya and Football B. Vasya and Wrestling C. Vasya and Basketball
- Codeforces A. Vasya and Socks
- Codeforces 493B Vasya and Wrestling(水)
- [Codeforces] 355A - Vasya and Digital Root
- codeforces-#460A Vasya and Socks
- Codeforces 460A Vasya and Socks(水题)
- CodeForces-460A-Vasya And Socks
- 第7章枚举类型输出5种球里去除3种不同球的组合
- uva 156 5-4
- 渗透jsp网站遇到防火墙后突破方法
- 摇一摇,很简单
- Unity项目中UI同学需知的程序相关要点
- Codeforces 493A Vasya and Football(水)
- 黑马程序员—指针
- how to use javascript Object.defineProperty?
- Java NIO原理图文分析及代码实现
- java5的CyclicBarrier同步工具(十五)
- git 管理工具对比 EGit GitBash SourceTree
- Codeforces 493B Vasya and Wrestling(水)
- 隐藏导航栏
- 回文距离(Palindrome Distance)