Submission #39607


ソースコード

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <iostream>
#include <string>
#include <stack>
#include <queue>
#include <cstring>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <functional>
using namespace std;
#define elif else if
#define echo cout <<
#define read cin >>
#define then {
#define elsee else {
#define _do {
#define done }
#define fi }
#define fin << '\n'
#define finn cout << '\n'
typedef long long ll;
typedef bool boolean;
typedef pair<int,int> pii;
typedef pair<pii, pii> piiii;
typedef pair<piiii, piiii> piiiiiiii;
typedef pair<piiiiiiii, piiiiiiii> piiiiiiiiiiiiiiii;
typedef pair<piiiiiiiiiiiiiiii, piiiiiiiiiiiiiiii> piiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii;
typedef pair<piiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii, piiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii> piiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii;
const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1};
const int dy[] = {0, 1, 0, -1, 1, -1, 1, -1};
boolean canMove(int x,int y,int w,int h){return (x>=0&&y>=0&&x<w&&y<h);};
const int INF = 1 << 29;
int main(){
//cin.tie(0); ios::sync_with_stdio(false);
int n;
int count = 0;
scanf("%d", &n);
char str[512];
for ( int i = 0; i <= n; i++ ) {
gets(str);
int len = strlen(str);
if ( str[len-4] == 'H' && str[len-3] == 'i' && str[len-2] == 'n' && str[len-1] == 'a' ) count++;
}
printf("%d\n", count);
return 0;
}

ステータス

項目 データ
問題 0710 - 雛のLOVE EAST
ユーザー名 r1825
投稿日時 2018-07-24 12:01:07
言語 C++11
状態 Accepted
得点 10
ソースコード長 1453 Byte
最大実行時間 71 ms
最大メモリ使用量 6396 KB

セット

セット 得点 Cases
1 ALL 10 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01 AC 71 ms 1632 KB
1
Input02 AC 27 ms 2376 KB
1
Input03 AC 24 ms 2348 KB
1
Input04 AC 16 ms 2576 KB
1
Input05 AC 27 ms 3572 KB
1
Input06 AC 27 ms 3804 KB
1
Input07 AC 24 ms 4164 KB
1
Input08 AC 24 ms 5420 KB
1
Input09 AC 25 ms 5780 KB
1
Input10 AC 23 ms 6396 KB
1