Submission #497066


Source Code Expand

#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <climits>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <stack>
#include <queue>
#include <string>
#include <map>
#include <set>
#include <sstream>
#include <functional>
#include <ctime>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> PII;
typedef vector<int> VI;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)
#define CLEAR(d) memset((d), 0, (sizeof((d))))
#define ALL(c) (c).begin(), (c).end()
#define ABS(x) ((x < 0) ? -(x) : (x))
#define SORT(x) sort((x).begin(), (x).end())
#define RSORT(x) sort((x).begin(), (x).end(), greater<int>() )
#define SIZE(a) ((int)((a).size()))
#define MOD 1000000007
#define EPS 1e-7
#define PI  3.14159265358979323846
#define INF 10000000
struct edge { int to; int cost; };
//================================================================

int main()
{
    string s;
    int sum = 0;
    for (int i = 0; i < 12; i++) {
        cin >> s;
        for (int j = 0; j < s.length(); j++) {
            if (s[j] == 'r') {
                sum++; break;
            }
        }
    }
    cout << sum << endl;
    return 0;
}

Submission Info

Submission Time
Task B - カキ
User mo2mo268
Language C++ (GCC 4.9.2)
Score 100
Code Size 1282 Byte
Status AC
Exec Time 30 ms
Memory 928 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 22
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt
All subtask0_sample_01.txt, subtask0_sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 27 ms 828 KB
subtask0_sample_02.txt AC 25 ms 928 KB
subtask1_01.txt AC 27 ms 844 KB
subtask1_02.txt AC 27 ms 824 KB
subtask1_03.txt AC 27 ms 920 KB
subtask1_04.txt AC 30 ms 800 KB
subtask1_05.txt AC 27 ms 920 KB
subtask1_06.txt AC 27 ms 920 KB
subtask1_07.txt AC 29 ms 792 KB
subtask1_08.txt AC 26 ms 916 KB
subtask1_09.txt AC 29 ms 924 KB
subtask1_10.txt AC 25 ms 796 KB
subtask1_11.txt AC 27 ms 828 KB
subtask1_12.txt AC 26 ms 924 KB
subtask1_13.txt AC 26 ms 924 KB
subtask1_14.txt AC 24 ms 924 KB
subtask1_15.txt AC 26 ms 928 KB
subtask1_16.txt AC 26 ms 928 KB
subtask1_17.txt AC 26 ms 928 KB
subtask1_18.txt AC 25 ms 924 KB
subtask1_19.txt AC 27 ms 924 KB
subtask1_20.txt AC 27 ms 916 KB