Submission #10668923


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = read().rstrip().decode()

def solve(S):
    N = len(S)
    if N % 2 == 1:
        return False
    T = 'hi' * (N//2)
    return S == T

print('Yes' if solve(S) else 'No')

Submission Info

Submission Time
Task A - Hitachi String
User maspy
Language Python (3.4.3)
Score 100
Code Size 305 Byte
Status AC
Exec Time 17 ms
Memory 3060 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 17
Set Name Test Cases
Sample 00_sample_01, 00_sample_02, 00_sample_03
All 00_sample_01, 00_sample_02, 00_sample_03, 02_random_01, 02_random_02, 02_random_03, 02_random_04, 02_random_05, 90_handmake_01, 90_handmake_02, 90_handmake_03, 90_handmake_04, 90_handmake_05, 90_handmake_06, 90_handmake_07, 90_handmake_08, 90_handmake_09
Case Name Status Exec Time Memory
00_sample_01 AC 17 ms 2940 KB
00_sample_02 AC 17 ms 2940 KB
00_sample_03 AC 17 ms 2940 KB
02_random_01 AC 17 ms 3060 KB
02_random_02 AC 17 ms 2940 KB
02_random_03 AC 17 ms 3060 KB
02_random_04 AC 17 ms 2940 KB
02_random_05 AC 17 ms 2940 KB
90_handmake_01 AC 17 ms 2940 KB
90_handmake_02 AC 17 ms 3060 KB
90_handmake_03 AC 17 ms 2940 KB
90_handmake_04 AC 17 ms 2940 KB
90_handmake_05 AC 17 ms 2940 KB
90_handmake_06 AC 17 ms 2940 KB
90_handmake_07 AC 17 ms 2940 KB
90_handmake_08 AC 17 ms 2940 KB
90_handmake_09 AC 17 ms 3060 KB