[Offer收割]编程练习赛19 register

Ended

Participants:405

Verdict:Accepted
Score:100 / 100
Submitted:2017-07-23 13:25:22

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma warning(disable:4996)
#include <iostream>  
#include <string.h>  
#include <stdio.h>  
#include <string>
#include <algorithm>
#include <queue>
#include <map>;
using namespace std;
const int maxn = 105;
char s[105][805], a[55][55];
int num[50], pt[50];
int main()
{
    ios::sync_with_stdio(false);
    int n, m, k;
    while (cin >> n >> m >> k)
    {
        memset(pt, 0, sizeof pt);
        for (int i = 0; i < n; i++)
        {
            cin >> a[i];
            for (int j = 0; j < m; j++) {
                pt[a[i][j] - 'A']++;
            }
        }
        int x, y;
        while (k--)
        {
            memset(num, 0, sizeof num);
            int err = 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX