(Black_GIRL)???

#1
Time Exceeded

≥1005ms
≥352.0KiB
#2
Wrong Answer

3ms
376.0KiB
#3
Accepted

3ms
372.0KiB
#4
Accepted

3ms
256.0KiB
#5
Accepted

6ms
368.0KiB
#6
Accepted

6ms
292.0KiB
#7
Accepted

6ms
256.0KiB
#8
Accepted

6ms
260.0KiB
#9
Accepted

3ms
336.0KiB
#10
Accepted

6ms
356.0KiB

1 条评论

  • @ 2017-07-13 17:52:04
    #include<cstdio>
    #include<cstring>
    #include<cmath>
    #include<algorithm>
    #include<iostream>
    using namespace std;
    int T, ans;
    int a[15];// ,g,o,d,m,r,n,i
    char c;
    int main() {
        scanf("%d", &T);
        c = getchar();
        while (c != '\n')getchar();
        for (int i = 1; i <= T; i++) {
            memset(a, 0, sizeof(a));
            ans = 0x3f3f3f3f;
            c = getchar();
            while (c != '\n') {
                if (c == ' ')a[0]++;
                else if (c == 'g')a[1]++;
                else if (c == 'o')a[2]++;
                else if (c == 'd')a[3]++;
                else if (c == 'm')a[4]++;
                else if (c == 'r')a[5]++;
                else if (c == 'n')a[6]++;
                else if (c == 'i')a[7]++;
                c = getchar();
            }
            ans = min(a[0] / 1, min(a[1] / 2, min(a[2] / 3, min(a[3] / 1, min(a[4] / 1, min(a[5] / 1, min(a[6] / 2, a[7] / 1)))))));
            printf("Case #%d: %d\n", i, ans);
        }
    }
    
  • 1

信息

ID
1902
难度
7
分类
(无)
标签
(无)
递交数
1572
已通过
340
通过率
22%
被复制
6
上传者