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 Python3 (3.4.3)
Score 100
Code Size 305 Byte
Status
Exec Time 17 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_sample_01, 00_sample_02, 00_sample_03
All 100 / 100 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 17 ms 2940 KB
00_sample_02 17 ms 2940 KB
00_sample_03 17 ms 2940 KB
02_random_01 17 ms 3060 KB
02_random_02 17 ms 2940 KB
02_random_03 17 ms 3060 KB
02_random_04 17 ms 2940 KB
02_random_05 17 ms 2940 KB
90_handmake_01 17 ms 2940 KB
90_handmake_02 17 ms 3060 KB
90_handmake_03 17 ms 2940 KB
90_handmake_04 17 ms 2940 KB
90_handmake_05 17 ms 2940 KB
90_handmake_06 17 ms 2940 KB
90_handmake_07 17 ms 2940 KB
90_handmake_08 17 ms 2940 KB
90_handmake_09 17 ms 3060 KB