buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
S = list(input())
flug = True
for i in range(0,len(S),2):
if i+1 < len(S):
st = S[i] + S[i + 1]
if st != "hi":
flug = False
else:
flug = False
if flug == True:
print("YES")
else:
print("NO") | S = list(input())
flug = True
for i in range(0,len(S),2):
if i+1 < len(S):
st = S[i] + S[i + 1]
if st != "hi":
flug = False
else:
flug = False
if flug == True:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 83 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using vl = long long;
using P = pair<long long, long... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using vl = long long;
using P = pair<long long, long... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s, s1;
cin >> s;
int ln = s.length();
for (int i = 0; i < ln / 2; i++) {
s1 += 'hi';
}
if (s == s1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s, s1;
cin >> s;
int ln = s.length();
for (int i = 0; i < ln / 2; i++) {
s1 += "hi";
}
if (s == s1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 103, 0, 104], ["-", 8, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 1, 0, 11, 12, 103, 0, 42, 0, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 85 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <random>
#inc... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <random>
#inc... | [["+", 0, 57, 15, 339, 51, 91, 28, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 91, 28, 23, 0, 25]] | 1 | 298 |
s = str(input())
result = "No"
for n in range(1,5):
if 'hi'*n == s:
result = "Yes"
break
print(result) | s = str(input())
result = "No"
for n in range(1,6):
if 'hi'*n == s:
result = "Yes"
break
print(result) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 42 |
s = input()
s = s.replace("hi", "")
if s:
print("Yes")
else:
print("No") | s = input()
s = s.replace("hi", "")
if s == "":
print("Yes")
else:
print("No")
| [["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]] | 5 | 35 |
#include <iostream>
#include <string>
using namespace std;
int main(void) {
string s, tmp;
cin >> s;
tmp = "i";
for (int i = 0; i < s.length(); i++)
if (tmp == "i" && s[i] == 'h')
tmp = "h";
else if (tmp == "h" && s[i] == 'i')
tmp = "i";
else
tmp = "no";
if (tmp == "no" && s[s.l... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s, tmp;
cin >> s;
tmp = "i";
for (int i = 0; i < s.length(); i++)
if (tmp == "i" && s[i] == 'h')
tmp = "h";
else if (tmp == "h" && s[i] == 'i')
tmp = "i";
else
tmp = "no";
if (tmp != "no" && s[s.l... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 138 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
int a = 0;
cin >> S;
if (S == "hi" || S == "hihi" || S == "hihihi" && S == "hihihihi" ||
S == "hihihihihi") {
a++;
}
if (a > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
int a = 0;
cin >> S;
if (S == "hi" || S == "hihi" || S == "hihihi" || S == "hihihihi" ||
S == "hihihihihi") {
a++;
}
if (a > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int size = s.size();
string ans = "Yes";
if (size < 2) {
ans = "No";
}
for (int i = 0; i < size; i++) {
if ((i % 2 == 0 && s[i] != 'h') || (i % 2 == 1 && s[i] != 'i')) {
ans = "No";
}
}
cout << ans << endl... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int size = s.size();
string ans = "Yes";
if (size % 2 != 0) {
ans = "No";
}
for (int i = 0; i < size; i++) {
if ((i % 2 == 0 && s[i] != 'h') || (i % 2 == 1 && s[i] != 'i')) {
ans = "No";
}
}
cout << ans <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
// 型定義
typedef long long ll;
typedef pair<ll, ll> P;
// forループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); ++i)
// 定数宣言
const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
// グラフ表現
using Graph = vector<vector<int>>;
// n次元配列の初期化。第2引数の型のサイズごとに初期化していく。
... | #include <bits/stdc++.h>
using namespace std;
// 型定義
typedef long long ll;
typedef pair<ll, ll> P;
// forループ
#define REP(i, n) for (ll i = 0; i < (ll)(n); ++i)
// 定数宣言
const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
// グラフ表現
using Graph = vector<vector<int>>;
// n次元配列の初期化。第2引数の型のサイズごとに初期化していく。
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 245 |
import sys
c = input()
for i in range(5):
if c == "hi"*i:
print("Yes")
sys.exit()
print("No") | import sys
c = input()
for i in range(6):
if c == "hi"*i:
print("Yes")
sys.exit()
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 41 |
#include <iostream>
#include <string>
int main() {
std::string S;
std::cin >> S;
bool is_hitachi_literal = true;
int length = S.length();
if (length % 2 == 1) {
is_hitachi_literal = false;
}
for (int i = 0; i < length; i = i + 2) {
if (S[i] != 'h' && S[i + 1] != 'i') {
is_hitachi_literal = ... | #include <iostream>
#include <string>
int main() {
std::string S;
std::cin >> S;
bool is_hitachi_literal = true;
int length = S.length();
if (length % 2 == 1) {
is_hitachi_literal = false;
}
for (int i = 0; i < length; i = i + 2) {
if (S[i] != 'h' || S[i + 1] != 'i') {
is_hitachi_literal = ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 131 |
S=input()
def No():
print("No")
def Yes():
print("Yes")
if len(S)%2!=0:
No()
if len(S)==0:
No()
if all([S[2*i:2*i+2]=="hi" for i in range(int(len(S)/2))]):
Yes()
else:
No() | S=input()
def No():
print("No")
exit()
def Yes():
print("Yes")
exit()
if len(S)%2!=0:
No()
if len(S)==0:
No()
if all([S[2*i:2*i+2]=="hi" for i in range(int(len(S)/2))]):
Yes()
else:
No() | [["+", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 97 |
#include <iostream>
using namespace std;
int main() {
int flag = 0;
string h;
cin >> h;
for (int i = 0; i < h.size(); i++) {
if (h[i] == 'h' && h[i + 1] == 'i') {
flag += 2;
i++;
}
}
if (flag == h.size()) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int flag = 0;
string h;
cin >> h;
for (int i = 0; i < h.size(); i++) {
if (h[i] == 'h' && h[i + 1] == 'i') {
flag += 2;
i++;
}
}
if (flag == h.size()) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 109 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool hitachi = true;
for (int i = 0; i < s.length(); i += 2) {
if (!(s[i] == 'h' && s[i] == 'i'))
hitachi = false;
}
if (hitachi)
cout << "Yes";
else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool hitachi = true;
for (int i = 0; i < s.length(); i += 2) {
if (!(s[i] == 'h' && s[i + 1] == 'i'))
hitachi = false;
}
if (hitachi)
cout << "Yes";
else
cout << "No";
} | [["+", 12, 16, 31, 69, 341, 342, 0, 16, 17, 72], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 89 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int ans = 0;
int i = 0;
while (i < s.size()) {
if (i % 2 == 0) {
if (s[i] != 'h') {
ans = 1;
}
}
if (i % 2 == 1) {
if (s[i] != 'i') {
ans = 1;
}
}
i++;
}
... | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int ans = 0;
int i = 0;
while (i < s.size()) {
if (i % 2 == 0) {
if (s[i] != 'h') {
ans = 1;
}
}
if (i % 2 == 1) {
if (s[i] != 'i') {
ans = 1;
}
}
i++;
}
... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 144 |
#pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define x first
#define y second
typedef long long LL;
typedef pair<int, int> PII;
bool suc = true;
string s;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin... | #pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
#define x first
#define y second
typedef long long LL;
typedef pair<int, int> PII;
bool suc = true;
string s;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 181 |
S = input()
for i in range(5):
x = 'hi'*i
if S == x:
print('Yes')
break;
else:
print('No')
| S = input()
for i in range(6):
x = 'hi'*i
if S == x:
print('Yes')
break;
else:
print('No')
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | [["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 2,808 |
//
// main.cpp
// hitachi2020A
#include <iostream>
#include <string> // stringを使う
using namespace std;
int main(int argc, const char *argv[]) {
string S;
cin >> S;
bool ok = true;
unsigned long length = S.length();
if (length == 1) { // 1文字の時はダメ
cout << "No" << endl;
return 0;
}
for (long i = 0... | //
// main.cpp
// hitachi2020A
#include <iostream>
#include <string> // stringを使う
using namespace std;
int main(int argc, const char *argv[]) {
string S;
cin >> S;
bool ok = true;
unsigned long length = S.length();
if (length % 2 == 1) { // 文字数が奇数ならダメ
cout << "No" << endl;
return 0;
}
for (long... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 167 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String reg = "^.*hi.*$";
if (s.matches(reg)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String reg = "(hi)*";
if (s.matches(reg)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
| [["-", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["+", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491]] | 3 | 87 |
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.size() & 1) {
cout << "NO";
return 0;
}
int cnt = 0;
for (auto c : s) {
if (c != (cnt ? 'i' : 'h')) {
cout << "No";
return 0;
}
cnt ^= 1;
}
cout << "Yes";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.size() & 1) {
cout << "No";
return 0;
}
int cnt = 0;
for (auto c : s) {
if (c != (cnt ? 'i' : 'h')) {
cout << "No";
return 0;
}
cnt ^= 1;
}
cout << "Yes";
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 94 |
x=input()
if x == 'hi':
print('Yes')
elif x == 'hihi':
print('Yes')
elif x == 'hihihi':
print('Yes')
elif x == 'hihihihi':
print('Yes')
elif x == 'hihihihihi':
print('Yes')
else:
print('NO') | x=input()
if x == 'hi':
print('Yes')
elif x == 'hihi':
print('Yes')
elif x == 'hihihi':
print('Yes')
elif x == 'hihihihi':
print('Yes')
elif x == 'hihihihihi':
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 78 |
S=input()
while len(S)>=2:
if S[0:2]=='hi':
S=S[2:]
else:
break
if len(S)==0:
print('YES')
else:
print('NO') | S=input()
while len(S)>=2:
if S[0:2]=='hi':
S=S[2:]
else:
break
if len(S)==0:
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string H = "hi";
cin >> S;
for (int i = 0; i < 4; i++) {
if (S == H) {
cout << "Yes" << endl;
break;
} else if (i < 3) {
H += "hi";
} else if (i == 3) {
cout << "No" << endl;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
string H = "hi";
cin >> S;
for (int i = 0; i < 5; i++) {
if (S == H) {
cout << "Yes" << endl;
break;
} else if (i < 4) {
H += "hi";
} else if (i == 4) {
cout << "No" << endl;
}
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 92 |
S=input()
h="hi"
for i in range(5):
if h*i==S:
print("Yes")
break
else:
print("No") | S=input()
h="hi"
for i in range(5):
if h*(i+1)==S:
print("Yes")
break
else:
print("No")
| [["+", 0, 57, 15, 666, 0, 657, 12, 23, 0, 24], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 17, 72], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 657, 12, 23, 0, 25]] | 5 | 40 |
s = input()
if len(s)&1 == 1:
print("no")
elif all(["hi" == s[i:i+2] for i in range(0, len(s), 2)]):
print("yes")
else:
print("no") | s = input()
if len(s)&1 == 1:
print("No")
elif all(["hi" == s[i:i+2] for i in range(0, len(s), 2)]):
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 68 |
S=input()
hihihihi
if(len(S)%2==0):
for i in range(len(S)//2):
if(S[2*i]!="h" or S[2*i+1]!="i"):
print("No")
break
else:
print("Yes")
else:
print("No") | S=input()
if(len(S)%2==0):
for i in range(len(S)//2):
if(S[2*i]!="h" or S[2*i+1]!="i"):
print("No")
break
else:
print("Yes")
else:
print("No") | [["-", 36, 36, 36, 36, 0, 656, 0, 1, 0, 22]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int count = 0, i, n;
cin >> s;
for (i = 0; i < s.length(); i = i + 2) {
if (!(s[i] == 'h' && s[i + 1] == 'i')) {
count++;
break;
}
}
if (count == 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int count = 0, i, n;
cin >> s;
for (i = 0; i < s.length(); i = i + 2) {
if (!(s[i] == 'h' && s[i + 1] == 'i')) {
count++;
break;
}
}
if (count == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 112 |
#include <bits/stdc++.h>
using namespace std;
const int N = 100;
char s[N];
bool fl = 0;
int n;
int main() {
scanf("%s", s + 1);
n = strlen(s + 1);
for (int i = 1; s[i]; i++) {
if ((i & 1) && s[i] != 'h')
fl = 1;
if (!(i & 1) && s[i] != 'i')
fl = 1;
}
if (!(n & 1) || fl)
puts("No");
... | #include <bits/stdc++.h>
using namespace std;
const int N = 100;
char s[N];
bool fl = 0;
int n;
int main() {
scanf("%s", s + 1);
n = strlen(s + 1);
for (int i = 1; s[i]; i++) {
if ((i & 1) && s[i] != 'h')
fl = 1;
if (!(i & 1) && s[i] != 'i')
fl = 1;
}
if ((n & 1) || fl)
puts("No");
e... | [["-", 0, 57, 15, 339, 51, 16, 31, 91, 17, 111]] | 1 | 141 |
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char s[11], de[2] = {'h', 'i'};
int len, flag;
int main() {
cin >> s;
len = strlen(s);
if (len % 2)
printf("No");
else {
for (int i = 0; i < len; ++i) {
if (s[i] != de[i % 2])
flag = 1;
break;
}
... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char s[11], de[2] = {'h', 'i'};
int len, flag;
int main() {
cin >> s;
len = strlen(s);
if (len % 2)
printf("No");
else {
for (int i = 0; i < len; ++i) {
if (s[i] != de[i % 2]) {
flag = 1;
break;
... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 131 |
import re
import sys
s = input()
l = re.split('(..)', s)[1::2]
judge = [c=="hi" for c in l]
if len(l) == 0:
print("No")
sys.exit()
if len(l) %2 != 0:
print("No")
sys.exit()
if all(judge):
print("Yes")
else:
print("No") | import re
import sys
s = input()
l = re.split('(..)', s)[1::2]
judge = [c=="hi" for c in l]
if len(l) == 0:
print("No")
sys.exit()
if len(s) %2 != 0:
print("No")
sys.exit()
if all(judge):
print("Yes")
else:
print("No") | [["-", 15, 666, 0, 657, 31, 652, 3, 4, 0, 22], ["+", 15, 666, 0, 657, 31, 652, 3, 4, 0, 22]] | 5 | 100 |
// omajinai c++
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <string>
#include <type_traits>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define itn int
using ll ... | // omajinai c++
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <string>
#include <type_traits>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define itn int
using ll ... | [["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40]] | 1 | 170 |
#include <bits/stdc++.h>
#define ll long long int
#define mod 1000000007
using namespace std;
ll power(ll x, ll n) {
ll res = 1;
while (n > 0) {
if (n % 2 == 1)
res = res * x;
x = x * x;
n = n / 2;
}
return res;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
in... | #include <bits/stdc++.h>
#define ll long long int
#define mod 1000000007
using namespace std;
ll power(ll x, ll n) {
ll res = 1;
while (n > 0) {
if (n % 2 == 1)
res = res * x;
x = x * x;
n = n / 2;
}
return res;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
in... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 189 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
bool ok = true;
if (S.size() % 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < S.size() - 1; i = i + 2) {
if (S.at(i) == 'h' && S.at(i + 1) == 'i') {
continue;
} else {
ok = false;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
bool ok = true;
if (S.size() % 2 == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < S.size() - 1; i = i + 2) {
if (S.at(i) == 'h' && S.at(i + 1) == 'i') {
continue;
} else {
ok = false;
... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 139 |
/*
██████ ██████
██ ██ ██ ██
Author -> ██████ ██ ██
██ ██ ██
██ ██████
nik is love.
nik is motivation.
Ek modulus aapki jindagi barbaad kar sakti hai
Watch for integer overflows.
A dream doesn't... | /*
██████ ██████
██ ██ ██ ██
Author -> ██████ ██ ██
██ ██ ██
██ ██████
nik is love.
nik is motivation.
Ek modulus aapki jindagi barbaad kar sakti hai
Watch for integer overflows.
A dream doesn't... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 109]] | 1 | 420 |
puts gets.gsub(/(hi)+/, "") == "" ? "Yes" : "No" | puts gets.chomp.gsub(/(hi)+/, "") == "" ? "Yes" : "No" | [["+", 0, 754, 15, 738, 31, 652, 486, 652, 735, 22], ["+", 3, 4, 0, 754, 15, 738, 31, 652, 17, 131]] | 4 | 23 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
string ans = "Yes";
if (str.size() % 2 == 1) {
ans = "No";
}
for (int i = 0; i < str.size(); i++) {
if (i % 2 == 0) {
if (str.at(i) = !'h') {
ans = "No";
}
}
if (i % 2 == 1) {
if (st... | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
string ans = "Yes";
if (str.size() % 2 == 1) {
ans = "No";
}
for (int i = 0; i < str.size(); i++) {
if (i % 2 == 0) {
if (str.at(i) != 'h') {
ans = "No";
}
}
if (i % 2 == 1) {
if (st... | [["-", 64, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["-", 0, 57, 15, 339, 51, 11, 12, 91, 17, 111], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 134 |
import sys
readline = sys.stdin.buffer.readline
S = readline().strip()
ans = 'No'
for i in range(1, 8):
if S == 'hi'*i:
ans = 'Yes'
print(ans) | import sys
readline = sys.stdin.buffer.readline
S = input()
ans = 'No'
for i in range(1, 8):
if S == 'hi'*i:
ans = 'Yes'
print(ans)
| [["-", 0, 662, 12, 652, 63, 319, 500, 652, 63, 22], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["-", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 53 |
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define endl "\n"
int main() {
string S;
cin >> S;
for (i64 i = 0; i < S.size(); i++)
if (i + 1 != S.size() || S.substr(i, 2) == "hi")
i++;
else {
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
return... | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define endl "\n"
int main() {
string S;
cin >> S;
for (i64 i = 0; i < S.size(); i++)
if (i + 1 != S.size() && S.substr(i, 2) == "hi")
i++;
else {
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
return... | [["-", 0, 7, 8, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 17, 98]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
template <class T> void ckmin(T &a, T b) { a = min(a, b); }
template <class T> void ckmax(T &a, T b) { a = max(a, b); }
#define pb push_back
#define mp make_pair
#define cotu cout
#define itn int
#define Red ... | #include <bits/stdc++.h>
using namespace std;
template <class T> void ckmin(T &a, T b) { a = min(a, b); }
template <class T> void ckmax(T &a, T b) { a = max(a, b); }
#define pb push_back
#define mp make_pair
#define cotu cout
#define itn int
#define Red ... | [["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 424 |
p gets.chomp=~/^(hi)+$/? :Yes : :No | puts gets.chomp=~/^(hi)+$/? :Yes : :No
| [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 12 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < int(N); ++i)
#define rep1(i, N) for (int i = 1; i < int(N); ++i)
#define all(a) (a).begin(), (a).end()
#define print(v) \
{ ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for (int i = 0; i < int(N); ++i)
#define rep1(i, N) for (int i = 1; i < int(N); ++i)
#define all(a) (a).begin(), (a).end()
#define print(v) \
{ ... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 304 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const string ln = "\n";
constexpr int INF = 1001001001;
constexpr int MOD = 1000000007;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s;
cin >> s;
string hi = "hi";
string ans = "Yes";
for (in... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const string ln = "\n";
constexpr int INF = 1001001001;
constexpr int MOD = 1000000007;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s;
cin >> s;
string hi = "hi";
string ans = "Yes";
for (in... | [["-", 51, 16, 12, 69, 341, 342, 0, 16, 17, 67], ["+", 51, 16, 12, 69, 341, 342, 0, 16, 17, 109]] | 1 | 152 |
a='hi'
b=''
p=[]
for i in range(6):
b+=a
p.append(a)
s=input()
print('Yes' if s in p else 'No') | a='hi'
b=''
p=[]
for i in range(6):
b+=a
p.append(b)
s=input()
print('Yes' if s in p else 'No')
| [["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 49 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s;
cin >> s;
string result = "No";
if (s.size() % 2 == 0) {
rep(i, s.size() / 2) {
if (s.substr(i * 2, i * 2 + 2) == "hi") {
re... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
string s;
cin >> s;
string result = "No";
if (s.size() % 2 == 0) {
rep(i, s.size() / 2) {
if (s.substr(i * 2, 2) == "hi") {
result = "... | [["-", 31, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 31, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["-", 31, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["-", 51, 16, 31, 2, 3, 4, 0, 16, 17, 72]] | 1 | 128 |
#include <iostream>
using namespace std;
bool solve(string S) {
if (S.size() % 2 != 0) {
return 0;
}
for (int i = 0; i < (int)S.size(); i += 2) {
if (S.substr(i, i + 2) != "hi")
return 0;
}
return 1;
}
int main() {
string S;
cin >> S;
cout << (solve(S) ? "Yes" : "No") << endl;
} | #include <iostream>
using namespace std;
bool solve(string S) {
if (S.size() % 2 != 0) {
return 0;
}
for (int i = 0; i < (int)S.size(); i += 2) {
if (S.substr(i, 2) != "hi") {
return 0;
}
}
return 1;
}
int main() {
string S;
cin >> S;
cout << (solve(S) ? "Yes" : "No") << endl;
} | [["-", 51, 16, 31, 2, 3, 4, 0, 16, 31, 22], ["-", 51, 16, 31, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 110 |
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
if (S.length() % 2 == 1) {
cout << "No" << endl;
} else {
int f = 0;
for (int i = 0; i < S.length() - 1; ++i) {
if (S[i] != 'h' || S[i + 1] != 'i') {
f = 1;
break;... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
if (S.length() % 2 == 1) {
cout << "No" << endl;
} else {
int f = 0;
for (int i = 0; i < S.length() - 1; i += 2) {
if (S[i] != 'h' || S[i + 1] != 'i') {
f = 1;
bre... | [["-", 75, 76, 0, 9, 0, 7, 26, 27, 17, 29], ["+", 75, 76, 0, 9, 0, 7, 26, 11, 17, 107], ["+", 75, 76, 0, 9, 0, 7, 26, 11, 12, 13]] | 1 | 132 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
... | [["+", 15, 339, 51, 16, 31, 91, 28, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 91, 28, 23, 0, 25], ["+", 15, 339, 51, 16, 12, 91, 28, 23, 0, 24], ["+", 15, 339, 51, 16, 12, 91, 28, 23, 0, 25]] | 1 | 234 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool check = true;
if (s.size() == 1)
check = false;
for (int i = 0; i < s.size(); i++) {
if (i % 2 == 0 && s[i] != 'h')
check = false;
if (i % 2 == 1 && s[i] != 'i')
check = false;
}
cout << (check ? "... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool check = true;
if (s.size() % 2 == 1)
check = false;
for (int i = 0; i < s.size(); i++) {
if (i % 2 == 0 && s[i] != 'h')
check = false;
if (i % 2 == 1 && s[i] != 'i')
check = false;
}
cout << (check... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 116 |
#include <bits/stdc++.h>
#define rep(i, n) for (i = 1; i <= (n); i++)
using namespace std;
using ll = long long;
#define sc scanf
#define pf printf
#define r0 return 0
// BIT
template <typename T> struct BIT {
int n;
vector<T> d;
BIT(int n = 0) : n(n), d(n + 1) {}
void add(int i, T x = 1) {
for (i++; i <= n... | #include <bits/stdc++.h>
#define rep(i, n) for (i = 1; i <= (n); i++)
using namespace std;
using ll = long long;
#define sc scanf
#define pf printf
#define r0 return 0
// BIT
template <typename T> struct BIT {
int n;
vector<T> d;
BIT(int n = 0) : n(n), d(n + 1) {}
void add(int i, T x = 1) {
for (i++; i <= n... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 280 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Vi = vector<int>;
using Vl = vector<ll>;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
constexpr int I_INF = numeric_limits<int>::max();
constexpr ll L_INF = numeric_limits<ll>::max();
//==================================
int main() ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Vi = vector<int>;
using Vl = vector<ll>;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
constexpr int I_INF = numeric_limits<int>::max();
constexpr ll L_INF = numeric_limits<ll>::max();
//==================================
int main() ... | [["-", 0, 41, 15, 23, 0, 16, 12, 91, 17, 111]] | 1 | 212 |
s=input()
for i in range(6):
if s=="hi"*i:
print("Yes")
print("No") | s=input()
for i in range(6):
if s=="hi"*i:
print("Yes")
exit()
print("No") | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 34 |
s = input()
ans = 'Yes'
if len(s) == 1:
ans = 'No'
for i in range(len(s)):
if i % 2 == 0:
if s[i] != 'h':
ans = 'No'
break
else:
if s[i] != 'i':
ans = 'No'
break
print(ans)
| s = input()
ans = 'Yes'
if len(s)%2 == 1:
ans = 'No'
for i in range(len(s)):
if i % 2 == 0:
if s[i] != 'h':
ans = 'No'
break
else:
if s[i] != 'i':
ans = 'No'
break
print(ans)
| [["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 79 |
#include <stdio.h>
#include <string.h>
int main(void) {
const char hitachi[3] = {"hi"};
char input[11];
int ii;
int not_hitachi = 1;
memset(input, 0x00, sizeof(input));
scanf("%s", input);
for (ii = 0; input[ii] != 0 && ii < 10;) {
if (!(memcmp(&input[ii], hitachi, sizeof(char) * 2))) {
not_h... | #include <stdio.h>
#include <string.h>
int main(void) {
const char hitachi[3] = {"hi"};
char input[11];
int ii;
int not_hitachi = 1;
memset(input, 0x00, sizeof(input));
scanf("%s", input);
for (ii = 0; input[ii] != 0 && ii < 10;) {
if (!(memcmp(&input[ii], hitachi, sizeof(char) * 2))) {
not_h... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60]] | 0 | 155 |
import re
def resolve():
str = input()
if re.match('(hi)+', str):
print("Yes")
else:
print("No")
resolve() | import re
def resolve():
str = input()
if re.match('^(hi)+$', str):
print("Yes")
else:
print("No")
resolve() | [["-", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define PI 3.141592653589793
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REP(i, a, n) for (int i = a; i < (n); i++)
#define rrep(i, n, k) \
for (int i = (n); i >= (k); i--) ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define PI 3.141592653589793
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REP(i, a, n) for (int i = a; i < (n); i++)
#define rrep(i, n, k) \
for (int i = (n); i >= (k); i--) ... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 299 |
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.NoSuchElementException;
import java.util.Random;
import java.util.Scanner;
class UnionFind {
int Parent[];
UnionFind(int n) { // Initialize by -1
Parent = new int[n];
Arrays.fill(Parent, -1);
}
int root(in... | import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.NoSuchElementException;
import java.util.Random;
import java.util.Scanner;
class UnionFind {
int Parent[];
UnionFind(int n) { // Initialize by -1
Parent = new int[n];
Arrays.fill(Parent, -1);
}
int root(in... | [["-", 15, 16, 12, 492, 3, 4, 0, 5, 0, 491], ["+", 15, 16, 12, 492, 3, 4, 0, 5, 0, 491]] | 3 | 2,012 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep_1(i, n) for (int(i) = 0; (i) <= (n); (i)++)
#define rep_2(i, a, b) for (int(i) = (a); (i) < (b); (i)++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
cons... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep_1(i, n) for (int(i) = 0; (i) <= (n); (i)++)
#define rep_2(i, a, b) for (int(i) = (a); (i) < (b); (i)++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
cons... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 188 |
#!/usr/bin/env python3
input = input()
hitati = [ hi*i for i in range(1, 6) ]
if input in hitati:
print('Yes')
else:
print('No') | #!/usr/bin/env python3
input = input()
hitati = [ 'hi'*i for i in range(1, 6) ]
if input in hitati:
print('Yes')
else:
print('No') | [["+", 0, 662, 12, 658, 8, 657, 31, 557, 0, 654], ["+", 0, 662, 12, 658, 8, 657, 31, 557, 0, 655]] | 5 | 41 |
def main():
s=input()
ans='No'
for i in range(5):
if s=='hi'*i:
ans='Yes'
break
print(ans)
if __name__=='__main__':
main() | def main():
s=input()
ans='No'
for i in range(1,6):
if s=='hi'*i:
ans='Yes'
break
print(ans)
if __name__=='__main__':
main() | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 52 |
#include "bits/stdc++.h"
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pi;
typedef pair<pair<ll, ll>, ll> pii;
vector<ll> vec;
vector<vector<ll>> vec2;
ll MOD = 1000000007;
ll INF = 1145141919454519;
int main() {
string S;
cin >> S;
if (S.length() % 2 != 0) {
cout << "No" << endl;
... | #include "bits/stdc++.h"
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pi;
typedef pair<pair<ll, ll>, ll> pii;
vector<ll> vec;
vector<vector<ll>> vec2;
ll MOD = 1000000007;
ll INF = 1145141919454519;
int main() {
string S;
cin >> S;
if (S.length() % 2 != 0) {
cout << "No" << endl;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35], ["-", 0, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 0, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 174 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S, check = "";
int a = 0;
cin >> S;
for (int i = 0; i < 5; i += 2) {
check += "hi";
if (S == check) {
cout << "Yes" << endl;
a++;
break;
}
}
if (a == 0) {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S, check = "";
int a = 0;
cin >> S;
for (int i = 0; i < 5; i++) {
check += "hi";
if (S == check) {
cout << "Yes" << endl;
a++;
break;
}
}
if (a == 0) {
cout << "No" << endl;
}
} | [["-", 0, 14, 8, 9, 0, 7, 26, 11, 17, 107], ["-", 0, 14, 8, 9, 0, 7, 26, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
constexpr int DEBUG = 0;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
set<string> d;
for (int i = 0; i < 5; i++) {
string s;
for (int j = 0; j < i; j++) {
s.append("hi");
}
d.insert(s);
}
string s;
c... | #include <bits/stdc++.h>
using namespace std;
using int64 = long long;
constexpr int DEBUG = 0;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
set<string> d;
for (int i = 1; i <= 5; i++) {
string s;
for (int j = 0; j < i; j++) {
s.append("hi");
}
d.insert(s);
}
string s;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 138 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
string s;
cin >> s;
for (int i = 0; i < s.size() - 1; i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
cout << "No" << endl;
return 0;
;
}
}
cout << "Yes" << endl;
return 0;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
string s;
cin >> s;
for (int i = 0; i < s.size(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
cout << "No" << endl;
return 0;
;
}
}
cout << "Yes" << endl;
return 0;
}
| [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 103 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char ch[2] = {'h', 'i'};
string s;
int main() {
cin >> s;
int k = s.length();
if (!(k % 2)) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < k; i++) {
if (s[i] != ch[i % 2]) {
cout <<... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char ch[2] = {'h', 'i'};
string s;
int main() {
cin >> s;
int k = s.length();
if (k % 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < k; i++) {
if (s[i] != ch[i % 2]) {
cout << "N... | [["-", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["-", 0, 57, 15, 339, 51, 91, 28, 23, 0, 24], ["-", 0, 57, 15, 339, 51, 91, 28, 23, 0, 25]] | 1 | 123 |
f=0
s=list(input())
if len(s)==1:
f=1
else:
for i in range(len(s)):
if i%2==1:
if s[i]!='i':
f=1
break
else:
if s[i]!='h':
f=1
break
if f==0:
print('Yes')
else:
print('No') | f=0
s=list(input())
if len(s)%2==1:
f=1
else:
for i in range(len(s)):
if i%2==1:
if s[i]!='i':
f=1
break
else:
if s[i]!='h':
f=1
break
if f==0:
print('Yes')
else:
print('No') | [["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 91 |
import re
if re.match ("(hi)+", input()):
print ("Yes")
else:
print ("No") | import re
if re.match ("^(hi)+$", input()):
print ("Yes")
else:
print ("No") | [["-", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6]] | 5 | 30 |
s = input()
if s == "hi" or s== "hihi" or s== "hihihi" or s =="hiihihihi" or s =="hihihihihi":
print("Yes")
else:
print("No") | s = input()
if s == "hi" or s == "hihi" or s == "hihihi" or s == "hihihihi" or s =="hihihihihi":
print("Yes")
else:
print("No") | [["-", 15, 679, 31, 679, 12, 666, 0, 557, 0, 6], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 6]] | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool able = true;
if (s.size() % 2 == 1)
able = false;
{
for (int i = 0; i < s.size(); i += 2) {
if (s[i] != 'h' && s[i + 1] != 'i') {
able = false;
break;
}
}
}
if (able)
cout << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
bool able = true;
if (s.size() % 2 == 1)
able = false;
{
for (int i = 0; i < s.size(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
able = false;
break;
}
}
}
if (able)
cout << ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 114 |
#include <bits/stdc++.h>
#define ll long long
#define str string
#define se second
#define fi first
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define ll long long
#define str string
#define se second
#define fi first
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 166 |
#include <stdio.h>
#include <string.h>
int main() {
char d[20];
int v = 0;
scanf("%s", d);
for (int i = 0; i < strlen(d) / 2; i = i + 2) {
if (d[i] != 'h' || d[i + 1] != 'i') {
v = 0;
break;
}
if (d[i] == 'h' && d[i + 1] == 'i')
v = 1;
}
if (v == 1)
printf("%s\n", "Ye... | #include <stdio.h>
#include <string.h>
int main() {
char d[11];
int v = 0;
scanf("%s", d);
for (int i = 0; i < strlen(d); i = i + 2) {
if (d[i] != 'h' || d[i + 1] != 'i') {
v = 0;
break;
}
if (d[i] == 'h' && d[i + 1] == 'i')
v = 1;
}
if (v == 1)
printf("%s\n", "Yes");... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 0 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int N = S.size();
if (N == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < N; ++i) {
if (i % 2 == 0 && S[i] != 'h') {
cout << "No" << endl;
return 0;
}
if (i % 2 != 0 && S[i] != 'i') {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int N = S.size();
if (N % 2 != 0) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < N; ++i) {
if (i % 2 == 0 && S[i] != 'h') {
cout << "No" << endl;
return 0;
}
if (i % 2 != 0 && S[i] != 'i')... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 131 |
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define R cin >>
#define Z class
#define ll long long
#define ln cout << '\n'
#define in(a) insert(a)
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n", a)
#define mem(a) memset(a, 0, sizeof(a))
#define all(c) (c).begin(), (c).end()
... | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define R cin >>
#define Z class
#define ll long long
#define ln cout << '\n'
#define in(a) insert(a)
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n", a)
#define mem(a) memset(a, 0, sizeof(a))
#define all(c) (c).begin(), (c).end()
... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79]] | 1 | 484 |
#include <stdio.h>
#include <string.h>
int main(void) {
char S[10];
int flag;
flag = 0;
scanf("%s", &S);
if (strlen(S) % 2 != 0) {
printf("No");
return 0;
}
// printf("%s", &S);
if (S[0] == 'h') {
for (int i = 1; S[i]; i++) {
if (i % 2 == 0 && S[i] != 'i')
flag = 1;
els... | #include <stdio.h>
#include <string.h>
int main(void) {
char S[10];
int flag;
flag = 0;
scanf("%s", &S);
if (strlen(S) % 2 != 0) {
printf("No");
return 0;
}
// printf("%s", &S);
if (S[0] == 'h') {
for (int i = 1; S[i]; i++) {
if (i % 2 == 0 && S[i] != 'h')
flag = 1;
els... | [["-", 15, 23, 0, 16, 12, 16, 12, 103, 0, 125], ["+", 15, 23, 0, 16, 12, 16, 12, 103, 0, 125]] | 0 | 165 |
import re
if re.match(r'^(hi)+$',S):
print('Yes')
else:
print('No') | import re
S = input()
if re.match(r'^(hi)+$',S):
print('Yes')
else:
print('No') | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 28 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a;
int l, t, u, k;
cin >> a;
l = a.length();
t = 0;
u = 0;
k = 0;
if (l % 2 == 1) {
u = 1;
}
for (int i; i < l; i++) {
if (t == 0) {
if (a[i] == 'h') {
t = 1;
if (u == 1) {
if (i == l - 1) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
int l, t, u, k;
cin >> a;
l = a.length();
t = 0;
u = 0;
k = 0;
if (l % 2 == 1) {
u = 1;
}
for (int i = 0; i < l; i++) {
if (t == 0) {
if (a[i] == 'h') {
t = 1;
if (u == 1) {
if (i == l - 1)... | [["+", 8, 9, 0, 7, 10, 43, 49, 50, 0, 32], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32]] | 1 | 196 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string data;
cin >> data;
bool ans = false;
for (int i = 0; i < data.size() - 1; i += 2) {
if (data.at(i) == 'h' && data.at(i + 1) == 'i') {
ans = true;
}
if (data.at(i) != 'h' || data.at(i + 1) != 'i') {
ans = false;
br... | #include <bits/stdc++.h>
using namespace std;
int main() {
string data;
cin >> data;
bool ans = false;
for (int i = 0; i < data.size() - 1; i += 2) {
if (data.at(i) == 'h' && data.at(i + 1) == 'i') {
ans = true;
}
if (data.at(i) != 'h' || data.at(i + 1) != 'i') {
ans = false;
br... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 158 |
import re
S = input()
if re.match(r'(hi)(hi)*',S):
print('Yes')
else:
print('No') | import re
S = input()
if re.match(r'^(hi)+$',S):
print('Yes')
else:
print('No') | [["-", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 57, 15, 652, 3, 4, 0, 557, 0, 6]] | 5 | 33 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string hitachi;
cin >> hitachi;
bool hit = true;
for (int i = 0; i < hitachi.length(); i += 2) {
if (hitachi.substr(i, 2) != "hi") {
hit = false;
break;
}
}
if (hit == true) {
cout << "yes";
} else {
cout ... | #include <iostream>
#include <string>
using namespace std;
int main() {
string hitachi;
cin >> hitachi;
bool hit = true;
for (int i = 0; i < hitachi.length(); i += 2) {
if (hitachi.substr(i, 2) != "hi") {
hit = false;
break;
}
}
if (hit == true) {
cout << "Yes";
} else {
cout ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long ll;
typedef pair<double, double> pdd;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef vector<pii> vii;
typedef vector<int> vi;
typedef vector<vi> ... | #include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long ll;
typedef pair<double, double> pdd;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef vector<pii> vii;
typedef vector<int> vi;
typedef vector<vi> ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 109], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 60], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 214 |
import re
index = re.match(r'(hi)+(.*?)', input())
if index:
print("Yes")
else:
print("No")
| import re
index = re.fullmatch(r'(hi)+', input())
if index:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int N = S.length();
bool flg = true;
for (int i = 0; i < N; i++) {
if (i % 2 == 0) {
if (S[i] != 'h') {
flg = false;
break;
}
} else {
if (S[i] != 'i') {
flg = false;
brea... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int N = S.length();
bool flg = true;
for (int i = 0; i < N; i++) {
if (i % 2 == 0) {
if (S[i] != 'h') {
flg = false;
break;
}
} else {
if (S[i] != 'i') {
flg = false;
brea... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 135 |
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int a = 0;
char z;
if (s.length() == 1)
cout << "No";
else {
for (int i = 0; i < s.length(); i++) {
z = s[i];
if (i % 2 == 0 && z != 'h')
a++;
else if (i % 2 == 1 && z != 'i')
a++;
}
i... | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int a = 0;
char z;
if (s.length() % 2 == 1)
cout << "No";
else {
for (int i = 0; i < s.length(); i++) {
z = s[i];
if (i % 2 == 0 && z != 'h')
a++;
else if (i % 2 == 1 && z != 'i')
a++;
}
... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 130 |
#include <bits/stdc++.h>
using namespace std;
const int maxi = 1e6 + 10;
int a[maxi];
int n;
string s;
int main() {
cin >> s;
if (s.size() == 1)
return !printf("No\n");
for (int i = 0; i < s.size(); i++)
if (i % 2 == 0 && s[i] != 'h')
return !printf("No\n");
else if (i % 2 == 1 && s[i] != 'i... | #include <bits/stdc++.h>
using namespace std;
const int maxi = 1e6 + 10;
int a[maxi];
int n;
string s;
int main() {
cin >> s;
if (s.size() % 2)
return !printf("No\n");
for (int i = 0; i < s.size(); i++)
if (i % 2 == 0 && s[i] != 'h')
return !printf("No\n");
else if (i % 2 == 1 && s[i] != 'i'... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 142 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
for (int i = 0; i < s.size(); i++) {
if (s.size() == 1) {
break;
}
if (s.size() % 2 != 0) {
break;
}
if (s.compa... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
for (int i = 0; i < s.size(); i += 2) {
if (s.size() == 1) {
break;
}
if (s.size() % 2 != 0) {
break;
}
if (s.co... | [["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29], ["+", 0, 14, 8, 9, 0, 7, 26, 11, 17, 107], ["+", 0, 14, 8, 9, 0, 7, 26, 11, 12, 13]] | 1 | 139 |
#include <bits/stdc++.h>
#define REP(i, s, N) for (int i = s; i < (N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;
int main() {
string S;
cin >> S;
bool ans = true;
int s = S.length() / 2;
if (s == 0)
ans = false;
if (S.length() % 2 != 0) {
ans = false;
... | #include <bits/stdc++.h>
#define REP(i, s, N) for (int i = s; i < (N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;
int main() {
string S;
cin >> S;
bool ans = true;
int s = S.length() / 2;
if (s == 0)
ans = false;
if (S.length() % 2 != 0) {
ans = false;
... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 17, 47], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 17, 18]] | 1 | 172 |
#include <bits/stdc++.h>
using namespace std;
#define all(s) s.begin(), s.end()
#define pb push_back
#define ii pair<int, int>
#define x first
#define y second
#define bit(x, y) ((x >> y) & 1)
#define sz(s) ((int)(s).size())
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s;
cin >>... | #include <bits/stdc++.h>
using namespace std;
#define all(s) s.begin(), s.end()
#define pb push_back
#define ii pair<int, int>
#define x first
#define y second
#define bit(x, y) ((x >> y) & 1)
#define sz(s) ((int)(s).size())
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s;
cin >>... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 183 |
#include <algorithm>
#include <deque>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int len = s.length();
bool good = true;
if (len & 1) {
good = false;
} else {
int index = 0;
while (index < len) {
if (s[index] == 'h' and s[index + 1] == 'i'... | #include <algorithm>
#include <deque>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int len = s.length();
bool good = true;
if (len & 1) {
good = false;
} else {
int index = 0;
while (index < len) {
if (s[index] == 'h' and s[index + 1] == 'i'... | [["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 121 |
s = input()
result = re.fullmatch("(hi){1,5}",s)
if result == None:
print("No")
else:
print("Yes") | import re
s = input()
result = re.fullmatch("(hi){1,5}",s)
if result == None:
print("No")
else:
print("Yes") | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 36 |
/*********************************************************************************\
* _________ _ _ ________ _ _ __ ________ *
* |___ ___|| | | || ______|| | | | / \ | ____ | *
* | | | | | || |______ | |_____| | / /\ \ | |____| | *
* | | | | | ||... | /*********************************************************************************\
* _________ _ _ ________ _ _ __ ________ *
* |___ ___|| | | || ______|| | | | / \ | ____ | *
* | | | | | || |______ | |_____| | / /\ \ | |____| | *
* | | | | | ||... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 148 |
string = input()
flag = False
num = len(string)
if num % 2 == 0:
for i in range(num // 2 - 1):
if string[2*i:2*(i+1)] == "hi":
if i == num // 2 - 1:
flag = True
else:
break
if flag:
print("Yes")
else:
print("No") | string = input()
flag = False
num = len(string)
if num % 2 == 0:
for i in range(num // 2):
if string[2*i:2*(i+1)] == "hi":
if i == num // 2 - 1:
flag = True
else:
break
if flag:
print("Yes")
else:
print("No") | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 85 |
# A
s = input()
for i in range(0, len(s), 2):
if len(s) < 2:
bool = False
break
elif s[i] == 'h' and s[i+1] == 'i':
bool = True
else:
bool = False
break
print('Yes' if bool else 'No') | # A
s = input()
for i in range(0, len(s), 2):
if len(s)%2 == 1:
bool = False
break
elif s[i] == 'h' and s[i+1] == 'i':
bool = True
else:
bool = False
break
print('Yes' if bool else 'No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 75 |
#include <cstdio>
using namespace std;
int main(int argc, char *argv[]) {
int imax = 10;
char s[imax];
fgets(s, imax, stdin);
int n = 0;
for (int i = 0; i < imax; i += 2) {
if (s[i] == '\0' || s[i] == '\n' || s[i] == '\r')
break;
if (i + 1 < imax) {
if (s[i + 0] == 'h' && s[i + 1] == 'i'... | #include <cstdio>
using namespace std;
int main(int argc, char *argv[]) {
int imax = 10;
char s[imax + 1];
fgets(s, imax + 1, stdin);
int n = 0;
for (int i = 0; i < imax; i += 2) {
if (s[i] == '\0' || s[i] == '\n' || s[i] == '\r')
break;
if (i + 1 < imax) {
if (s[i + 0] == 'h' && s[i + 1... | [["+", 8, 9, 0, 43, 49, 80, 81, 16, 17, 72], ["+", 8, 9, 0, 43, 49, 80, 81, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 171 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iostream> // cout, endl, cin
#include <map> // map
#in... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iostream> // cout, endl, cin
#include <map> // map
#in... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 194 |
#include <bits/stdc++.h>
#define FOR(i, m, n) for (int i = m; i < (n); i++)
#define RFOR(i, m, n) for (int i = (m - 1); i >= 0; i--)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i, n) RFOR(i, n, 0)
#define ALL(v) v.begin(), v.end()
#define RALL(v) v.rbegin(), v.rend()
#define print(ele) cout << (ele) << endl
#define pri... | #include <bits/stdc++.h>
#define FOR(i, m, n) for (int i = m; i < (n); i++)
#define RFOR(i, m, n) for (int i = (m - 1); i >= 0; i--)
#define REP(i, n) FOR(i, 0, n)
#define RREP(i, n) RFOR(i, n, 0)
#define ALL(v) v.begin(), v.end()
#define RALL(v) v.rbegin(), v.rend()
#define print(ele) cout << (ele) << endl
#define pri... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6]] | 1 | 187 |
# coding: utf-8
# Your code here!
import re
input = input()
pattern = '^(hi)+$'
# compile後match
repatter = re.compile(pattern)
result = repatter.fullmatch(input)
if result is not None:
print("yes")
else:
print("no") | # coding: utf-8
# Your code here!
import re
input = input()
pattern = '^(hi)+$'
# compile後match
repatter = re.compile(pattern)
result = repatter.fullmatch(input)
if result is not None:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 51 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] input = scanner.nextLine().split("");
if (input.length == 1) {
System.out.println("No");
return;
}
boolean hiString = true;
for (int x = 0; x < input... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] input = scanner.nextLine().split("");
if (!(input.length % 2 == 0)) {
System.out.println("No");
return;
}
boolean hiString = true;
for (int x = 0; x ... | [["+", 8, 196, 0, 57, 15, 15, 0, 91, 17, 111], ["+", 0, 57, 15, 15, 0, 91, 439, 23, 0, 24], ["+", 0, 91, 439, 23, 0, 16, 31, 16, 17, 109], ["+", 0, 91, 439, 23, 0, 16, 31, 16, 12, 499], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 15, 15, 0, 91, 439, 23, 0, 16, 12, 499], ["+", 0, 57, 15, 15, 0, 91, 439, 23, 0, 2... | 3 | 157 |
#include <iostream>
bool ishihi(std::string S) {
if (S.size() % 2 != 0) {
return false;
}
bool valid = true;
for (size_t i = 0; i < S.size() / 2; i++) {
valid = valid && (S[2 * i] == 'h');
valid = valid && (S[2 * i + 1] == 'i');
}
}
void hitachi1() {
std::string S;
std::cin >> S;
if (ish... | #include <iostream>
bool ishihi(std::string S) {
if (S.size() % 2 != 0) {
return false;
}
bool valid = true;
for (size_t i = 0; i < S.size() / 2; i++) {
valid = valid && (S[2 * i] == 'h');
valid = valid && (S[2 * i + 1] == 'i');
}
return valid;
}
void hitachi1() {
std::string S;
std::cin ... | [["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]] | 1 | 147 |
#include <bits/stdc++.h>
using namespace std;
int main() {
char s[20];
cin >> s;
int c = 0;
int l = strlen(s);
for (int i = 0; i < l; i = i + 2) {
if (s[i] == 'h' && s[i + 1] == 'i') {
c++;
}
}
if ((l / 2) == (c)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return... | #include <bits/stdc++.h>
using namespace std;
int main() {
char s[20];
cin >> s;
int c = 0;
int l = strlen(s);
for (int i = 0; i < l; i = i + 2) {
if (s[i] == 'h' && s[i + 1] == 'i') {
c++;
}
}
if (((l + 1) / 2) == (c)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
... | [["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 25]] | 1 | 117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.