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 |
|---|---|---|---|---|
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rrep(i, n) for (int i = n - 1; i >= 0; --i)
#define yesno(flg) \
if (flg) { \
cout << "YES" << endl; ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rrep(i, n) for (int i = n - 1; i >= 0; --i)
#define yesno(flg) \
if (flg) { \
cout << "YES" << endl; ... | [["-", 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, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 280 |
s=input()
if len(s)%2==1:
print("No")
exit()
for i in range(len(s)//2,2):
if s[i] != "h" or s[i+1] != "i":
print("No")
exit()
print("Yes") | s=input()
if len(s)%2==1:
print("No")
exit()
for i in range(0,len(s),2):
if s[i] != "h" or s[i+1] != "i":
print("No")
exit()
print("Yes") | [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 676], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 75 |
def main():
S = input()
L_S = len(S)
if L_S % 2 != 0:
print('No')
for i in range(L_S//2):
if S[i*2] != 'h' or S[i*2 + 1] != 'i':
print('No')
exit()
print('Yes')
if __name__ == '__main__':
main()
| def main():
S = input()
L_S = len(S)
if L_S % 2 != 0:
print('No')
exit()
for i in range(L_S // 2):
if S[i * 2] != 'h' or S[i * 2 + 1] != 'i':
print('No')
exit()
print('Yes')
if __name__ == '__main__':
main()
| [["+", 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 | 89 |
s=input()
if len(s)%2==0:
for i in range(0,len(s)//2):
if s[2*i]!="h" or s[2*i+1]!="i":
break
print("No")
else:
print("Yes")
else:
print("No") | s=input()
if len(s)%2==0:
for i in range(0,len(s)//2):
if s[2*i]!="h" or s[2*i+1]!="i":
print("No")
break
else:
print("Yes")
else:
print("No") | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 78 |
a = "hi"
s = input()
n = 0
for i in range(5):
if a*i==s:
n = n+1
else:
pass
if n>=1:
print("Yes")
else:
print("No") | a = "hi"
s = input()
n = 0
for i in range(1,6):
if a*i==s:
n = n+1
else:
pass
if n>=1:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 55 |
S = input()
is_hitachi = True
if len(S) >= 2:
for i in range(0, len(S), 2):
if not (S[i] == 'h' and S[i + 1] == 'i'):
is_hitachi = False
print('YNeos'[not is_hitachi::2])
else:
print('No')
| S = input()
is_hitachi = True
if len(S) %2 == 0:
for i in range(0, len(S), 2):
if not (S[i] == 'h' and S[i + 1] == 'i'):
is_hitachi = False
print('YNeos'[not is_hitachi::2])
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 79 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
string s;
cin >> s;
bool ok = true;
if (s.length()... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
string s;
cin >> s;
bool ok = true;
if (s.length()... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 169 |
S = input()
if len(S) < 2:
print('No')
return
s = S.replace('hi', '')
# print(S)
print('Yes' if len(s) < 1 else 'No') | S = input()
if len(S) < 2:
print('No')
exit()
s = S.replace('hi', '')
# print(S)
print('Yes' if len(s) < 1 else 'No') | [["-", 0, 656, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 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 | 51 |
a = input()
b = a.split("hi")
c = "".join(b)
print(c)
if len(c) <= 0:
print("Yes")
else:
print("No") | a = input()
b = a.split("hi")
c = "".join(b)
if len(c) <= 0:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 50 |
H = True
ans = True
for c in input():
if H and c != "h":
ans = False
break
elif not H and c != "i":
ans = False
break
H = not H
print("Yes" if ans else "No")
| H = True
ans = True
for c in input():
if H and c != "h":
ans = False
break
elif not H and c != "i":
ans = False
break
H = not H
print("Yes" if ans and H else "No")
| [["+", 0, 652, 3, 4, 0, 41, 0, 679, 17, 355], ["+", 0, 652, 3, 4, 0, 41, 0, 679, 12, 22]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef pair<ll, ll> PP;
#define rep(i, n) for (ll i = 0; i < ll(n); i++)
#define all(v) v.begin(), v.end()
bool chmin(ll &a, ll b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
bool chmax(ll &a, ll b) {
if (b... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef pair<ll, ll> PP;
#define rep(i, n) for (ll i = 0; i < ll(n); i++)
#define all(v) v.begin(), v.end()
bool chmin(ll &a, ll b) {
if (b < a) {
a = b;
return 1;
}
return 0;
}
bool chmax(ll &a, ll b) {
if (b... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 222 |
s = gets.rstrip
5.times do |i|
if s == 'hi' * i
puts 'Yes'
exit
end
end
puts 'No' | s = gets.rstrip
10.times do |i|
if s == 'hi' * i
puts 'Yes'
exit
end
end
puts 'No' | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 486, 612], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 486, 612]] | 4 | 31 |
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
template <class T, class U> inline bool chmin(T &lhs, const U &rhs) {
if (lhs > rhs) {
lhs = rhs;
return true;
}
return false;
}
template <class T, class U> inline bool ch... |
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
template <class T, class U> inline bool chmin(T &lhs, const U &rhs) {
if (lhs > rhs) {
lhs = rhs;
return true;
}
return false;
}
template <class T, class U> inline bool ch... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 460 |
s = gets.chomp
if s =~ /(hi)+/
print("Yes")
else
print("No")
end | s = gets.chomp
if s =~ /^(hi)+$/
print("Yes")
else
print("No")
end | [["-", 0, 493, 0, 121, 15, 738, 12, 575, 0, 6], ["+", 0, 493, 0, 121, 15, 738, 12, 575, 0, 6]] | 4 | 25 |
s=input()
if (s == 'hi') or (s == 'hihi'):
print('Yes')
elif (s == 'hihihi') or (s == 'hihihihihi'):
print('Yes')
elif (s == 'hihihihihi'):
print('Yes')
else:
print('No')
| s=input()
if (s == 'hi') or (s == 'hihi'):
print('Yes')
elif (s == 'hihihi') or (s == 'hihihihi'):
print('Yes')
elif (s == 'hihihihihi'):
print('Yes')
else:
print('No')
| [["-", 15, 679, 12, 23, 0, 666, 0, 557, 0, 6], ["+", 15, 679, 12, 23, 0, 666, 0, 557, 0, 6]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
const int w = 4e5 + 5;
const ll mod = 1e9 + 7;
char a[w];
int main() {
int i, j;
scanf("%s", a);
int len = strlen(a);
int flag = 0;
for (i = 0; i < len; i++) {
if (a[i] == 'h')
flag++;
if (a[i] == '... | #include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
const int w = 4e5 + 5;
const ll mod = 1e9 + 7;
char a[w];
int main() {
int i, j;
scanf("%s", a);
int len = strlen(a);
int flag = 0;
for (i = 0; i < len; i++) {
if (a[i] == 'h')
flag++;
else if (a[i]... | [["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 12, 13], ["+", 75, 76, 0, 57, 75, 76, 0, 1, 0, 35]] | 1 | 146 |
import sys
import math
readline = sys.stdin.buffer.readline
s = readline().rstrip().decode('utf-8')
n = len(s)
if n%2 != 0:
print("No")
else:
for i in range(0,n,2):
if s[i:i+2] != "hi":
print("No")
exit()
print("Yes") | import sys
import math
readline = sys.stdin.buffer.readline
s = readline().rstrip().decode('utf-8')
n = len(s)
if n%2 != 0:
print("No")
exit()
else:
for i in range(0,n,2):
if s[i:i+2] != "hi":
print("No")
exit()
print("Yes") | [["+", 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 | 91 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
bool ans = true;
if (s.length() == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < s.length(); i++) {
ans &= (i % 2 == 0 && s[i] == 'h') || (i % 2 == 1 && s[i] == 'i');
}
cout << (ans ? "Yes" : "... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
bool ans = true;
if (s.length() % 2 == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < s.length(); i++) {
ans &= (i % 2 == 0 && s[i] == 'h') || (i % 2 == 1 && s[i] == 'i');
}
cout << (ans ? "Yes"... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 123 |
s = input()
p = len(s)
s = s.replace('hi', '')
a = len(s)
if p -a>= 4:
print('Yes')
else:
print('No') | s = input()
p = len(s)
s = s.replace('hi', '')
a = len(s)
if a==0:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 33], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 51 |
s = input()
if len(s)%2 != 0:
print('No')
else:
for x in range(0,len(s), 2):
if s[x:x+2] != 'hi':
print('No')
exit()
print('Yes') | s = input()
if len(s)%2 != 0:
print('No')
exit()
else:
for x in range(0,len(s), 2):
if s[x:x+2] != 'hi':
print('No')
exit()
print('Yes') | [["+", 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 | 67 |
#include <bits/stdc++.h>
#define int long long
#define ll long long
using ull = unsigned long long;
using namespace std;
const int INF = 1e10;
const int MOD = 1e9 + 7;
#define dump(x) \
if (dbg) { ... | #include <bits/stdc++.h>
#define int long long
#define ll long long
using ull = unsigned long long;
using namespace std;
const int INF = 1e10;
const int MOD = 1e9 + 7;
#define dump(x) \
if (dbg) { ... | [["-", 15, 339, 51, 16, 31, 16, 31, 69, 28, 22], ["-", 51, 16, 31, 16, 31, 69, 341, 342, 0, 70], ["-", 51, 16, 31, 16, 31, 69, 341, 342, 0, 73]] | 1 | 380 |
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < n; i++)
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
typedef long long ll;
int main() {
string S;
cin >> S;
if (S.size() == 1) {
cout << "No" << endl;
return 0;
}
rep(i, S.size()) {
if (i % 2 == 0 && S[i] != 'h') {
... | #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < n; i++)
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
typedef long long ll;
int main() {
string S;
cin >> S;
if (S.size() % 2 != 0) {
cout << "No" << endl;
return 0;
}
rep(i, S.size()) {
if (i % 2 == 0 && S[i] != 'h')... | [["-", 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 | 141 |
// prakhsri_
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <time.h>
using namespace std;
#define ll int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define mod 1000000
void solve() {
string s;
cin >> s;
ll i, j, k, f = 0;
for (i = 0; i < s.size(); i++) ... | // prakhsri_
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <time.h>
using namespace std;
#define ll int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define mod 1000000
void solve() {
string s;
cin >> s;
ll i, j, k, f = 0;
for (i = 0; i < s.size(); i++) ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 181 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int t = 0;
for (int i = 0; i < s.length(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i')
t = 1;
}
if (t)
cout << "NO" << endl;
else
cout << "YES" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int t = 0;
for (int i = 0; i < s.length(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i')
t = 1;
}
if (t)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 92 |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String[] s = sc.next().split("");
for (int i = 0; i < s.length; i++) {
if (i % 2 == 0) {
if (!s[i].equals("h")) {
System.out.println("No");
return;
}
... | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String[] s = sc.next().split("");
for (int i = 0; i < s.length; i++) {
if (i % 2 == 0) {
if (!s[i].equals("h")) {
System.out.println("No");
return;
}
... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 3 | 182 |
#include <iostream>
using namespace std;
int main() {
string str;
cin >> str;
if (str.length() == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < str.length(); i++) {
if (i % 2 == 0) {
if (str[i] != 'h') {
cout << "No" << endl;
return 0;
}
} else {
... | #include <iostream>
using namespace std;
int main() {
string str;
cin >> str;
if (str.length() % 2 == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < str.length(); i++) {
if (i % 2 == 0) {
if (str[i] != 'h') {
cout << "No" << endl;
return 0;
}
} else {
... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 134 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() % 2) {
cout << "no" << endl;
return 0;
}
if (s == "hi" || s == "hihi" || s == "hihihi" || s == "hihihihi" ||
s == "hihihihihi") {
cout << "yes" << endl;
return 0;
}
cout << "no" << endl;
r... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() % 2) {
cout << "No" << endl;
return 0;
}
if (s == "hi" || s == "hihi" || s == "hihihi" || s == "hihihihi" ||
s == "hihihihihi") {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
r... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
n = str(input())
ans = 'Yes'
if len(n)%2 == 1:
ans = No
else:
for i in range(0, len(n)-1, 2):
if n[i] != 'h' or n[i + 1] != 'i':
ans = 'No'
print(ans) | n = str(input())
ans = 'Yes'
if len(n)%2 == 1:
ans = 'No'
else:
for i in range(0, len(n)-1, 2):
if n[i] != 'h' or n[i + 1] != 'i':
ans = 'No'
print(ans) | [["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 654], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 655]] | 5 | 75 |
s = input()
if len(s) > 1:
ans = True
else:
ans = False
for i in range(len(s)):
if i % 2 == 0:
if s[i] != 'h':
ans = False
else:
if s[i] != 'i':
ans = False
if ans:
print('Yes')
else:
print('No')
| s = input()
if len(s) % 2 == 0:
ans = True
else:
ans = False
for i in range(len(s)):
if i % 2 == 0:
if s[i] != 'h':
ans = False
else:
if s[i] != 'i':
ans = False
if ans:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 84 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() & 1) {
cout << "NO" << endl;
return 0;
}
for (int i = 0; i < s.size(); i++) {
if (s[i] != (i & 1 ? 'i' : 'h')) {
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() & 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < s.size(); i++) {
if (s[i] != (i & 1 ? 'i' : 'h')) {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.size() & 1) {
puts("NO");
return 0;
} else
for (int i = 0; i < s.size(); i += 2)
if (s[i] != 'h' || s[i + 1] != 'i') {
puts("NO");
return 0;
}
puts("YES");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.size() & 1) {
puts("No");
return 0;
} else
for (int i = 0; i < s.size(); i += 2)
if (s[i] != 'h' || s[i + 1] != 'i') {
puts("No");
return 0;
}
puts("Yes");
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
// ios::sync_with_stdio(0);
string s;
bool f = 1;
cin >> s;
for (int i = 0; i < s.size(); i++) {
if (i % 2 == 0 && s[i] != 'h')
f = 0;
if (i % 2 && s[i] != 'i')
f = 0;
}
if (s.size() < 2 && s.size() % 2 =... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
// ios::sync_with_stdio(0);
string s;
bool f = 1;
cin >> s;
for (int i = 0; i < s.size(); i++) {
if (i % 2 == 0 && s[i] != 'h')
f = 0;
if (i % 2 && s[i] != 'i')
f = 0;
}
if (s.size() < 2 || s.size() % 2 =... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 130 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int fn(0);
for (int i = 0; i < s.length(); ++i) {
if ((s[i] != 'h' && i % 2 == 0) || (s[i] != 'i' && i % 2)) {
fn = 1;
break;
}
}
if (fn == 0 || s.length() % 2)
cout << "Yes";
else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int fn(0);
for (int i = 0; i < s.length(); ++i) {
if ((s[i] != 'h' && i % 2 == 0) || (s[i] != 'i' && i % 2)) {
fn = 1;
break;
}
}
if (fn == 0 && s.length() % 2 == 0)
cout << "Yes";
else
cout << "No";... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 114 |
S = gets.chomp
cnt = S.scan('hi').length
if S.size == 1
puts "No"
exit
end
if S.size / 2 == cnt
puts "Yes"
else
puts "No"
end
| S = gets.chomp
cnt = S.scan('hi').length
if S.size % 2 != 0
puts "No"
exit
end
if S.size / 2 == cnt
puts "Yes"
else
puts "No"
end | [["-", 36, 36, 0, 493, 0, 121, 15, 738, 17, 60], ["-", 36, 36, 0, 493, 0, 121, 15, 738, 12, 612], ["+", 0, 493, 0, 121, 15, 738, 31, 738, 17, 109], ["+", 0, 493, 0, 121, 15, 738, 31, 738, 12, 612], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 79], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 12, 612]] | 4 | 47 |
#include <iostream>
using namespace std;
int main(void) {
string S;
cin >> S;
for (int i = 0; i < S.length() - 1; i += 2) {
if (S[i] == 'h' && S[i + 1] == 'i')
continue;
else {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
string S;
cin >> S;
for (int i = 0; i < S.length(); i += 2) {
if (S[i] == 'h' && S[i + 1] == 'i')
continue;
else {
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 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() & 1)
cout << "NO\n";
else {
bool game = true;
for (int i = 0; i < s.size() - 1; i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
game = false;
break;
}
}
if (game)
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
if (s.size() & 1)
cout << "No\n";
else {
bool game = true;
for (int i = 0; i < s.size() - 1; i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
game = false;
break;
}
}
if (game)
cou... | [["-", 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 | 116 |
#include <bits/stdc++.h>
#define fo(i, a, b) for (int i = (a); i <= (b); ++i)
#define rv(i, a, b) for (int i = (a); i >= (b); --i)
using namespace std;
const int M = 120000;
typedef long long ll;
int n, m, k;
char s[M];
bool ok() {
if (n & 1)
return 0;
fo(i, 0, n - 1) {
if (s[i] != 'h' || s[i + 1] != 'i')
... | #include <bits/stdc++.h>
#define fo(i, a, b) for (int i = (a); i <= (b); ++i)
#define rv(i, a, b) for (int i = (a); i >= (b); --i)
using namespace std;
const int M = 120000;
typedef long long ll;
int n, m, k;
char s[M];
bool ok() {
if (n & 1)
return 1;
fo(i, 0, n - 1) {
if (s[i] != 'h' || s[i + 1] != 'i')
... | [["-", 0, 14, 8, 9, 0, 57, 64, 37, 0, 13], ["+", 0, 14, 8, 9, 0, 57, 64, 37, 0, 13], ["-", 8, 9, 0, 9, 0, 57, 64, 37, 0, 13], ["+", 8, 9, 0, 9, 0, 57, 64, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 150 |
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define fr first
#define sc second
#define r_0 return 0
#define ld long double
#define TIME \
ios_base::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define fr first
#define sc second
#define r_0 return 0
#define ld long double
#define TIME \
ios_base::sync_with_stdio(0); ... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 140 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <stdio.h>
#include <string>
#include <vector>
#define big ((long long)(1e9) + 7)
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
int main() {
string s;
cin >> s;
if (s.size() < 2)... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <stdio.h>
#include <string>
#include <vector>
#define big ((long long)(1e9) + 7)
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
int main() {
string s;
cin >> s;
if (s.size() % 2 ... | [["-", 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 | 174 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
typedef char SINT8;
typedef short SINT16;
typedef int SINT32;
typedef long long SINT64;
typedef double DOUBLE;
#define MAX(a, b) ((a) > (b) ? ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
typedef char SINT8;
typedef short SINT16;
typedef int SINT32;
typedef long long SINT64;
typedef double DOUBLE;
#define MAX(a, b) ((a) > (b) ? ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 352 |
def main():
import sys
#input = sys.stdin.readline
sys.setrecursionlimit(10000000)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations
#from itertools import accumulate, product
from bisect import bisect_left,bisect... | def main():
import sys
#input = sys.stdin.readline
sys.setrecursionlimit(10000000)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations
#from itertools import accumulate, product
from bisect import bisect_left,bisect... | [["-", 0, 656, 0, 14, 8, 196, 0, 57, 0, 121], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 14, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 134 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#inclu... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#inclu... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 351 |
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG // GCC5.4.1で配列の範囲外アクセスをエラーにする
// cmdで g++ test.cpp とするとコンパイルできる
//制限1秒なら10^6は余裕 10^7は多分間に合う 10^8はよほど単純でないと厳しい
typedef long long ll; // long long
typedef pair<int, int> pii; // pair<int,int>
// const int MOD=998244353;
const int MOD = 10000000... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG // GCC5.4.1で配列の範囲外アクセスをエラーにする
// cmdで g++ test.cpp とするとコンパイルできる
//制限1秒なら10^6は余裕 10^7は多分間に合う 10^8はよほど単純でないと厳しい
typedef long long ll; // long long
typedef pair<int, int> pii; // pair<int,int>
// const int MOD=998244353;
const int MOD = 10000000... | [["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]] | 1 | 164 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define fix(n) cout << fixed ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define fix(n) cout << fixed ... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 300 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define chmin(x, y) x = min(x, y)
#define chmax(x, y) x = max(x, y)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1 << 21;
const ll INF = 1LL << 60;
const ll mod = 1e9 + 7;
const int dx[4] = {-1, 0, 1, 0};
co... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define chmin(x, y) x = min(x, y)
#define chmax(x, y) x = max(x, y)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int inf = 1 << 21;
const ll INF = 1LL << 60;
const ll mod = 1e9 + 7;
const int dx[4] = {-1, 0, 1, 0};
co... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 354], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]... | 1 | 203 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define f first
#define s second
#define pb push_back
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
bool f... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define f first
#define s second
#define pb push_back
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
bool f... | [["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]] | 1 | 132 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define all(n) begin(n), end(n)
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
const long long INF = numeric_limits<long long>::max();
ty... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define all(n) begin(n), end(n)
struct cww {
cww() {
ios::sync_with_stdio(false);
cin.tie(0);
}
} star;
const long long INF = numeric_limits<long long>::max();
ty... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 480 |
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
using namespace std;
typedef long long ll;
typedef double db;
typedef long double ldb;
template <class T> inline void checkmin(T &a, const T &b) {
if (b < a)
a = b;
}
template <class T> inline void checkmax(T... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
using namespace std;
typedef long long ll;
typedef double db;
typedef long double ldb;
template <class T> inline void checkmin(T &a, const T &b) {
if (b < a)
a = b;
}
template <class T> inline void checkmax(T... | [["-", 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, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 227 |
S = list(input())
if len(S)%2 != 0:
print("No")
else:
for i in range(len(S)):
if (i%2 == 0 & S[i] != "h") or (i%2 == 1 & S[i] != "i"):
print("No")
break
else:
print("Yes") | S = list(input())
if len(S)%2 != 0:
print("No")
else:
for i in range(len(S)):
if (i%2 == 0 and S[i] != "h") or (i%2 == 1 and S[i] != "i"):
print("No")
break
else:
print("Yes") | [["-", 15, 679, 31, 23, 0, 666, 0, 657, 17, 67], ["+", 0, 57, 15, 679, 31, 23, 0, 679, 17, 355], ["-", 15, 679, 12, 23, 0, 666, 0, 657, 17, 67], ["+", 0, 57, 15, 679, 12, 23, 0, 679, 17, 355]] | 5 | 87 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "hi" || S == "hihi" || S == "hihihi" || S == "hihihihi" ||
S == "hihihihihi") {
cout << "Yes" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "hi" || S == "hihi" || S == "hihihi" || S == "hihihihi" ||
S == "hihihihihi") {
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 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string S;
cin >> S;
string ans = "Yes";
char c1, c2;
if (S.length() % 2 == 1) {
ans = "No";
} else {
rep(i, S.length() / 2)... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string S;
cin >> S;
string ans = "Yes";
char c1, c2;
if (S.length() % 2 == 1) {
ans = "No";
} else {
rep(i, S.length() / 2)... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 151 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(final String[] args) throws Exception {
final Scanner sc = new Scanner(System.in);
String S;
S = sc.next();
final Solver solver = new Solver();
solver.solve(S);
}
}
class Solver {
static final String YES = "Y... | import java.io.*;
import java.util.*;
public class Main {
public static void main(final String[] args) throws Exception {
final Scanner sc = new Scanner(System.in);
String S;
S = sc.next();
final Solver solver = new Solver();
solver.solve(S);
}
}
class Solver {
static final String YES = "Y... | [["-", 64, 196, 0, 1, 0, 492, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 492, 3, 4, 0, 22]] | 3 | 218 |
/*
"With age, comes wisdom. With travel, comes understanding.
Remember that happiness is a way of travel – not a destination"
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define int long long int
#de... | /*
"With age, comes wisdom. With travel, comes understanding.
Remember that happiness is a way of travel – not a destination"
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define int long long int
#de... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 8, 9, 0, 7, 15, 16, 12, 2, 63, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 22], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 25]] | 1 | 452 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) begin(v), end(v)
#define allg(v) begin(v), end(v), greater<int>()
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s;
cin >> s;
if (s == "hi" or s == "hih... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) begin(v), end(v)
#define allg(v) begin(v), end(v), greater<int>()
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s;
cin >> s;
if (s == "hi" or s == "hih... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 44]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
if (s.length() == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < s.length(); i++) {
if (i % 2 == 0 && s[i] != 'h') {
cout << "No" << endl;
return 0;
}
if (i % 2 == 1 && s[i] != 'i') ... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
if (s.length() % 2 == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < s.length(); i++) {
if (i % 2 == 0 && s[i] != 'h') {
cout << "No" << endl;
return 0;
}
if (i % 2 == 1 && s[i] != '... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 134 |
# a
require 'pp'
s = gets.chomp
puts (s.match(/hi/)) ? 'Yes' : 'No'
| # a
require 'pp'
s = gets.chomp
puts (s.match(/^(hi)+$/)) ? 'Yes' : 'No'
| [["-", 15, 739, 0, 652, 3, 4, 0, 575, 0, 6], ["+", 15, 739, 0, 652, 3, 4, 0, 575, 0, 6]] | 4 | 29 |
s=input()
print('Yes' if s.count('hi')==len(s)//2 else 'No') | s=input()
print('Yes' if s.count('hi')==len(s)/2 else 'No') | [["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 676], ["+", 3, 4, 0, 41, 0, 666, 0, 657, 17, 85]] | 5 | 31 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
string std = "hi";
bool flag = true;
if (str.size() & 1) {
flag = false;
return 0;
}
for (int i = 0; i < str.size(); i += 2) {
if (str[i] != std[0] || str[i + 1] != std[1])
flag = false;
}
if (flag)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
string std = "hi";
bool flag = true;
if (str.size() & 1) {
cout << "No";
return 0;
}
for (int i = 0; i < str.size(); i += 2) {
if (str[i] != std[0] || str[i + 1] != std[1])
flag = false;
}
if (flag)
... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 147], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define vi vector<int>
#define vll vector<ll>
#define pll pair<ll, ll>
#define pii pair<int, int>
#define pb push_back
#define ppb pop_back
#define mp make_pair
int main() {
// #ifndef ONLINE_JUDGE
// freopen("input.txt", "r", stdin);
// freopen(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define vi vector<int>
#define vll vector<ll>
#define pll pair<ll, ll>
#define pii pair<int, int>
#define pb push_back
#define ppb pop_back
#define mp make_pair
int main() {
// #ifndef ONLINE_JUDGE
// freopen("input.txt", "r", stdin);
// freopen(... | [["-", 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 | 151 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S.size() == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < S.size(); i++) {
string sub = S.substr(i, 2);
if (sub == "hi") {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << en... | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S.size() == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < S.size(); i += 2) {
string sub = S.substr(i, 2);
if (sub != "hi") {
cout << "No" << endl;
return 0;
}
}
cout << "Yes" <<... | [["-", 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], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 106 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string S;
cin >> S;
if (S.size() % 2)
cout << "No";
else {
for (int i = 1; i < S.size(); ++i) {
if (i % 2 && S[i] != 'i') {
cout << "No";
... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string S;
cin >> S;
if (S.size() % 2)
cout << "No";
else {
for (int i = 0; i < S.size(); ++i) {
if (i % 2 && S[i] != 'i') {
cout << "No";
... | [["-", 0, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 145 |
s = list(input())
if len(s)%2 == 1:
print("No")
elif s.count("hi") == len(s)//2:
print("Yes")
else:
print("No") | s = input()
if len(s)%2 == 1:
print("No")
elif s.count("hi") == len(s)//2:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 55 |
/* #region Head */
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pll = pair<ll, ll>;
template <class T> using vc = vector<T>;
template <class T> using vvc = vc<vc<T>>;
using vll = vc<ll>;
using vvll = vvc<ll>;
using vld = vc<ld>;
usin... | /* #region Head */
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pll = pair<ll, ll>;
template <class T> using vc = vector<T>;
template <class T> using vvc = vc<vc<T>>;
using vll = vc<ll>;
using vvll = vvc<ll>;
using vld = vc<ld>;
usin... | [["-", 0, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["-", 15, 339, 51, 11, 12, 16, 31, 91, 17, 111], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79]] | 1 | 1,165 |
#include <bits/stdc++.h>
#define LL long long
#define PB push_back
#define POP pop_back()
#define PII pair<int, int>
#define FI first
#define SE second
#define ULL unsigned long long
using namespace std;
const int INF = 0x3f3f3f3f;
const double pi = acos(-1), eps = 1e-8;
const int maxn = 1 << 17;
const int N = 1e6 + 10... | #include <bits/stdc++.h>
#define LL long long
#define PB push_back
#define POP pop_back()
#define PII pair<int, int>
#define FI first
#define SE second
#define ULL unsigned long long
using namespace std;
const int INF = 0x3f3f3f3f;
const double pi = acos(-1), eps = 1e-8;
const int maxn = 1 << 17;
const int N = 1e6 + 10... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 162 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main() {
string S;
cin >> S;
if (S == "hi" || S ... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using ll = long long;
using ull = unsigned long long;
using namespace std;
int main() {
string S;
cin >> S;
if (S == "hi" || S ... | [["-", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]] | 1 | 114 |
#include <algorithm>
#include <cstdio>
using namespace std;
typedef long long ll;
const int MAXN = 10 + 5;
char s[MAXN];
int main(void) {
scanf("%s", s + 1);
for (int i = 1; s[i]; i += 2)
if (s[i] != 'h' || s[i + 1] != 'i')
return printf("0\n"), 0;
printf("Yes");
return 0;
} | #include <algorithm>
#include <cstdio>
using namespace std;
typedef long long ll;
const int MAXN = 10 + 5;
char s[MAXN];
int main(void) {
scanf("%s", s + 1);
for (int i = 1; s[i]; i += 2)
if (s[i] != 'h' || s[i + 1] != 'i')
return printf("No\n"), 0;
printf("Yes\n");
return 0;
} | [["-", 0, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 34, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 104 |
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include ... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include ... | [["-", 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 | 1,130 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define rep(i, x) for (ll i = 0; i < (ll)(x); i++)
#define rrep(i, x) for (ll i = (ll)(x)-1; 0 <= i; i--)
#define reps(i, x) for (ll i = 1; i < (ll)(x) + 1; i++)
#d... | #include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
#define rep(i, x) for (ll i = 0; i < (ll)(x); i++)
#define rrep(i, x) for (ll i = (ll)(x)-1; 0 <= i; i--)
#define reps(i, x) for (ll i = 1; i < (ll)(x) + 1; i++)
#d... | [["-", 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, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 245 |
#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.size() == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < (int)s.size() - 1;) {
if (s[i] == 'h' && s[i + 1] == 'i')
i += 2;
else {
cout << "No" << endl;
return 0;
}
}
cout... | #include <bits/stdc++.h>
using namespace std;
string s;
int main() {
cin >> s;
if (s.size() % 2 == 1) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < (int)s.size() - 1;) {
if (s[i] == 'h' && s[i + 1] == 'i')
i += 2;
else {
cout << "No" << endl;
return 0;
}
}
... | [["+", 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>
using namespace std;
using llong = long long;
using ldbl = long double;
using lpair = pair<llong, llong>;
#define ALL(x) x.begin(), x.end()
template <typename T>
constexpr T inf =
static_cast<T>(pow(10, static_cast<int>(log10(numeric_limits<T>::max())))) +
7;
constexpr llong mod = 1e... | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using ldbl = long double;
using lpair = pair<llong, llong>;
#define ALL(x) x.begin(), x.end()
template <typename T>
constexpr T inf =
static_cast<T>(pow(10, static_cast<int>(log10(numeric_limits<T>::max())))) +
7;
constexpr llong mod = 1e... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 85], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 164 |
#include <bits/stdc++.h>
#define f first
#define s second
#define all(x) x.begin(), x.end()
#define pb push_back
#define ll long long
using namespace std;
int main() {
string s;
cin >> s;
int n = s.size();
if (n & 1) {
printf("No\n");
return 0;
}
bool ok = 1;
for (int i = 0; i < n; i += 2)
... | #include <bits/stdc++.h>
#define f first
#define s second
#define all(x) x.begin(), x.end()
#define pb push_back
#define ll long long
using namespace std;
int main() {
string s;
cin >> s;
int n = s.size();
if (n & 1) {
printf("No\n");
return 0;
}
bool ok = 1;
for (int i = 0; i < n; i += 2)
... | [["+", 12, 16, 31, 69, 341, 342, 0, 16, 17, 72], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 125 |
# coding: utf-8
d = {"h":0, "i":0}
S = input()
if len(S) == 1:
print("No")
exit()
flag = True
for i in range(0, len(S)-1, 2):
if S[i:i+2] != "hi":
flag = False
break
print("Yes" if flag else "No") | # coding: utf-8
d = {"h":0, "i":0}
S = input()
if len(S) % 2 == 1:
print("No")
exit()
flag = True
for i in range(0, len(S)-1, 2):
if S[i:i+2] != "hi":
flag = False
break
print("Yes" if flag else "No") | [["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
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;
} | #include <bits/stdc++.h>
using namespace std;
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;
} | [["-", 0, 7, 8, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 17, 106]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
/*
*/
ll gcd(ll a, ll b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
using Graph = vector<vector<int>>;
ll calc(ll a, ll b, ll p) { // aのb乗をpで割った余り
if (b == 0)
return 1;
else... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
/*
*/
ll gcd(ll a, ll b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
using Graph = vector<vector<int>>;
ll calc(ll a, ll b, ll p) { // aのb乗をpで割った余り
if (b == 0)
return 1;
else... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 353 |
def get_i() #空白区切の入力を数値(整数)の配列で返す
return gets.chomp.split(" ").map(&:to_i)
end
def get_f() #空白区切の入力を数値(実数)の配列で返す
return gets.chomp.split(" ").map(&:to_f)
end
def get() #空白区切の入力を文字列の配列で返す
return gets.chomp.split(" ")
end
def get_nsp() #入力されたものを一文字ずつに区切った文字列の配列で返す
return gets.chomp.split("")
end
def yn_judge(bool... | def get_i() #空白区切の入力を数値(整数)の配列で返す
return gets.chomp.split(" ").map(&:to_i)
end
def get_f() #空白区切の入力を数値(実数)の配列で返す
return gets.chomp.split(" ").map(&:to_f)
end
def get() #空白区切の入力を文字列の配列で返す
return gets.chomp.split(" ")
end
def get_nsp() #入力されたものを一文字ずつに区切った文字列の配列で返す
return gets.chomp.split("")
end
def yn_judge(bool... | [["-", 0, 493, 0, 121, 15, 738, 12, 575, 0, 6], ["+", 0, 493, 0, 121, 15, 738, 12, 575, 0, 6]] | 4 | 176 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
S += " ";
bool flag = false;
for (int i = 0; i < S.size(); i += 2)
if (S.substr(i, 2) != "hi")
flag = true;
if (!flag)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
bool flag = false;
for (int i = 0; i < S.size(); i += 2)
if (S.substr(i, 2) != "hi")
flag = true;
if (!flag)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["-", 8, 9, 0, 1, 0, 11, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 92 |
S = str(int())
if S%2 == 0:
tes = "hi"*int((len(S)/2))
if S ==tes:
print("Yes")
else:
print("No")
else:
print("No") | S = str(input())
if len(S)%2 == 0:
tes = "hi"*int((len(S)/2))
if S ==tes:
print("Yes")
else:
print("No")
else:
print("No")
| [["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 657, 31, 652, 63, 22], ["+", 15, 666, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 15, 666, 0, 657, 31, 652, 3, 4, 0, 25]] | 5 | 59 |
s = input()
a = 0
if len(s) == 1:
print('No')
exit(0)
for i in range(len(s)):
if i % 2 == 0:
if s[i] == 'h':
pass
else:
a += 1
else:
if s[i] == 'i':
pass
else:
a += 1
if a == 0:
print('Yes')
else:
print('No')
| s = input()
a = 0
if len(s) % 2 == 1:
print('No')
exit(0)
for i in range(len(s)):
if i % 2 == 0:
if s[i] == 'h':
pass
else:
a += 1
else:
if s[i] == 'i':
pass
else:
a += 1
if a == 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 | 97 |
import sys
S = input()
if len(S)<2:
print("No")
sys.exit()
for i in range(len(S)):
if i%2 == 0 and S[i] == "h":
pass
elif i%2 == 1 and S[i] == "i":
pass
else:
print("No")
sys.exit()
print("Yes") | import sys
S = input()
if len(S)%2!=0:
print("No")
sys.exit()
for i in range(len(S)):
if i%2 == 0 and S[i] == "h":
pass
elif i%2 == 1 and S[i] == "i":
pass
else:
print("No")
sys.exit()
print("Yes") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 90 |
#!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
length = len(S)
if length % 2 != 0:
print(NO)
for i in range(length):
if i % 2 == 0 and S[i] != "h":
print(NO)
return
elif i % 2 != 0 and S[i] != "i":
... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
length = len(S)
if length % 2 != 0:
print(NO)
return
for i in range(length):
if i % 2 == 0 and S[i] != "h":
print(NO)
return
elif i % 2 != 0 and... | [["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]] | 5 | 148 |
S = input()
flg = False
num = len(S)
if num == 2 and S == 'hi':
flg = True
if num == 4 and S == 'hihi':
flg = True
if num == 6 and S == 'hihihi':
flg = True
if num == 8 and S == 'hihihi':
flg = True
if num == 10 and S == 'hihihi':
flg = True
if flg == True:
print('Yes')
else:
print('No')
| S = input()
flg = False
num = len(S)
if num == 2 and S == 'hi':
flg = True
if num == 4 and S == 'hihi':
flg = True
if num == 6 and S == 'hihihi':
flg = True
if num == 8 and S == 'hihihihi':
flg = True
if num == 10 and S == 'hihihihihi':
flg = True
if flg == True:
print('Yes')
else:
print('... | [["-", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 12, 666, 0, 557, 0, 6]] | 5 | 103 |
#At coder 2020/3/8 C
#import math
#import time
S=input()
#Q=int(input())
ans='no'
if len(S)%2==0:
#print(len(S)/2)
for ii in range(int(len(S)/2)):
if S[2*ii]=='h' and S[2*ii+1]=='i':
ans='Yes'
else:
ans='No'
break
print(ans) | #At coder 2020/3/9 A
#import math
#import time
S=input()
#Q=int(input())
ans='No'
if len(S)%2==0:
#print(len(S)/2)
for ii in range(int(len(S)/2)):
if S[2*ii]=='h' and S[2*ii+1]=='i':
ans='Yes'
else:
ans='No'
break
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 83 |
s = gets.chomp.split('')
check = 0
s.size.times do |i|
if i.even? || i == 0
check += 1 if s[i] == 'h'
else
check += 1 if s[i] == 'i'
end
end
if check == s.size && s.size >= 2
puts :Yes
else
puts :No
end | s = gets.chomp.split('')
check = 0
s.size.times do |i|
if i.even? || i == 0
check += 1 if s[i] == 'h'
else
check += 1 if s[i] == 'i'
end
end
if check == s.size && s.size.even?
puts :Yes
else
puts :No
end | [["-", 0, 493, 0, 121, 15, 738, 12, 738, 17, 20], ["-", 0, 493, 0, 121, 15, 738, 12, 738, 12, 612], ["+", 0, 493, 0, 121, 15, 738, 12, 652, 17, 131], ["+", 0, 493, 0, 121, 15, 738, 12, 652, 735, 22]] | 4 | 76 |
#include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <iomanip> //cout<<stw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <string>
#include <vector>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S.length() % 2 == 1) {
cout <... | #include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <iomanip> //cout<<stw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <string>
#include <vector>
using namespace std;
int main(void) {
string S;
cin >> S;
if (S.length() % 2 == 1) {
cout <... | [["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13]] | 1 | 163 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
#define rep(i, n) for (int i = 0; i... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
#define rep(i, n) for (int i = 0; i... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 239 |
#include <stdio.h>
int main() {
int i;
char s[12];
scanf("%d", &s);
for (i = 0; s[i] != 0; i += 2) {
if ((s[i] != 'h') | (s[i + 1] != 'i')) {
i = -1;
break;
}
}
if (i != -1) {
printf("Yes");
} else {
printf("No");
}
return (0);
}
| #include <stdio.h>
int main() {
int i;
char s[12];
scanf("%s", &s);
for (i = 0; s[i] != 0; i += 2) {
if ((s[i] != 'h') | (s[i + 1] != 'i')) {
i = -1;
break;
}
}
if (i != -1) {
printf("Yes");
} else {
printf("No");
}
return (0);
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 110 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
//#define int long long
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rep1(i, n) for (int i = 1; i <= n; ++i)
#define ALL(x) x... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
//#define int long long
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rep1(i, n) for (int i = 1; i <= n; ++i)
#define ALL(x) x... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 193 |
S = str(input())
flag = False
if len(S) % 2 == 1:
flag = False
else:
for count in range(int(len(S)/2)):
if S[count*2] != "h" and S[count*2 + 1] != "i":
flag = False
break
else:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| S = str(input())
flag = False
if len(S) % 2 == 1:
flag = False
else:
for count in range(int(len(S)/2)):
if S[count*2] != "h" or S[count*2 + 1] != "i":
flag = False
break
else:
flag = True
if flag == True:
print("Yes")
else:
print("No")
| [["-", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 95 |
#include <stdio.h>
#include <string.h>
int main() {
int a;
char s[11];
scanf("%s", s);
a = strlen(s);
for (int i = 0; i < a - 1; i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
}
| #include <stdio.h>
#include <string.h>
int main() {
int a;
char s[11];
scanf("%s", s);
a = strlen(s);
for (int i = 0; i <= a - 1; i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i') {
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 100 |
import sys
s = input()
if len(s) % 2 != 0:
print('No')
for i in range(0,len(s),2):
if s[i:(i+2)] != 'hi':
print('No')
sys.exit()
print('Yes') | import sys
s = input()
if len(s) % 2 != 0:
print('No')
sys.exit()
for i in range(0,len(s),2):
if s[i:(i+2)] != 'hi':
print('No')
sys.exit()
print('Yes') | [["+", 64, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 71 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
int c = -1;
bool ans = true;
rep(i, s.size()) {
if ((c == -1 && s[i] == 'h') || (c == 1 && s[i] == 'i'))
c *= -1;
else {
ans = false;
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
int c = -1;
bool ans = true;
rep(i, s.size()) {
if ((c == -1 && s[i] == 'h') || (c == 1 && s[i] == 'i'))
c *= -1;
else {
ans = false;
}
... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 121 |
#include <iostream>
#include <vector>
// #include<list>
#include <algorithm>
using namespace std;
#define l long long
#define vi vector<int>
#define vvi vector<vector<int>>
#define rep(i, n) for (i = 0; i < n; i++)
#define REP(i, k, n) for (i = k; i <= n; i++)
#define REPR(i, k, n) for (i = k; i >= n; i--)
bool hi(st... | #include <iostream>
#include <vector>
// #include<list>
#include <algorithm>
using namespace std;
#define l long long
#define vi vector<int>
#define vvi vector<vector<int>>
#define rep(i, n) for (i = 0; i < n; i++)
#define REP(i, k, n) for (i = k; i <= n; i++)
#define REPR(i, k, n) for (i = k; i >= n; i--)
bool hi(st... | [["-", 8, 9, 0, 7, 15, 16, 31, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 159 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int check = 0;
for (int i = 0; i <= s.size(); i += 2) {
if (s[i] != 'h' && s[i + 1] != 'i')
check++;
}
if (check == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int check = 0;
for (int i = 0; i < s.size(); i += 2) {
if (s[i] != 'h' || s[i + 1] != 'i')
check++;
}
if (check == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "hi" || S == "hihi" || S == "hihihi" || S == "hihihihi") {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
if (S == "hi" || S == "hihi" || S == "hihihi" || S == "hihihihi" ||
S == "hihihihihi") {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 62], ["+", 15, 339, 51, 16, 12, 16, 12, 5, 0, 6]] | 1 | 66 |
#!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
if len(S)%2 != 0:
print(NO)
else:
for x in range(len(S)//2):
if S[2*x:2*x+2] != "hi":
print(NO)
return
print(YES)
return
# Generated... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
if (len(S)%2 != 0):
print(NO)
else:
for x in range(len(S)//2):
if S[2*x:2*x+2] != "hi":
print(NO)
return
print(YES)
return
... | [["+", 0, 14, 8, 196, 0, 57, 15, 23, 0, 24], ["+", 0, 14, 8, 196, 0, 57, 15, 23, 0, 25]] | 5 | 135 |
S = input()
ans = 'No'
if len(S)%2 == 0:
for i in range(len(S)//2):
if S[2*i] + S[2*i+1] != 'hi':
print(i)
break
elif i == (len(S)//2)-1:
ans = 'Yes'
print(ans) | S = input()
ans = 'No'
if len(S)%2 == 0:
for i in range(len(S)//2):
if S[2*i] + S[2*i+1] != 'hi':
break
elif i == (len(S)//2)-1:
ans = 'Yes'
print(ans) | [["-", 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, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 82 |
s = input()
hi = True
for i in range(len(s)):
if i % 2 == 0 and s[i] != "h":
hi = False
break
elif i % 2 == 1 and s[i] != "i":
hi = False
break
if len(s) < 2:
hi = False
if hi:
print("Yes")
else:
print("No") | s = input()
hi = True
for i in range(len(s)):
if i % 2 == 0 and s[i] != "h":
hi = False
break
elif i % 2 == 1 and s[i] != "i":
hi = False
break
if len(s) % 2 != 0:
hi = False
if hi:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 87 |
S=input()
ans="Yes"
if S%2==1:
ans="No"
else:
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
ans="No"
break
if i%2==1:
if S[i]!="i":
ans="No"
break
print(ans) | S=input()
ans="Yes"
if len(S)%2==1:
ans="No"
else:
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
ans="No"
break
if i%2==1:
if S[i]!="i":
ans="No"
break
print(ans) | [["+", 0, 57, 15, 666, 0, 657, 31, 652, 63, 22], ["+", 15, 666, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 15, 666, 0, 657, 31, 652, 3, 4, 0, 25]] | 5 | 85 |
# coding: utf-8
S=list(input())
flg=True
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
flg=False
else:
if S[i]!="i":
flg=False
if len(S)==1:
flg=False
if flg:
print("Yes")
else:
print("No")
| # coding: utf-8
S=list(input())
flg=True
for i in range(len(S)):
if i%2==0:
if S[i]!="h":
flg=False
else:
if S[i]!="i":
flg=False
if len(S)%2==1:
flg=False
if flg:
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 | 86 |
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimization_level 3
using ll = long long;
constexpr ll INF = 1'010'000'000'000'000'017LL;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
int main() {
string s;
cin >> s;
bool res = true;
if (s.size() % 2 == 0) {
... | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimization_level 3
using ll = long long;
constexpr ll INF = 1'010'000'000'000'000'017LL;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
int main() {
string s;
cin >> s;
bool res = true;
if (s.size() % 2 != 0) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 149 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.