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> using namespace std; int main() { int d, c = 0; cin >> d; for (int i = 1; i < 3; i++) { if (d % 10 == 7) { c++; break; } else d = d / 10; } if (c > 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int d, c = 0; cin >> d; for (int i = 1; i <= 3; i++) { if (d % 10 == 7) { c++; break; } else d = d / 10; } if (c > 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
1
87
#include <algorithm> #include <bitset> #include <ctype.h> #include <deque> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> ...
#include <algorithm> #include <bitset> #include <ctype.h> #include <deque> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> ...
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
1,256
#include <bits/stdc++.h> #include <random> #pragma comment(linker, "/stack:200000000") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4") #define ll long long #define f first #define s second #define pb push_back #define mp make_pair #define o cout << "BUG" << endl; #define IOS ios_base::syn...
#include <bits/stdc++.h> #include <random> #pragma comment(linker, "/stack:200000000") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4") #define ll long long #define f first #define s second #define pb push_back #define mp make_pair #define o cout << "BUG" << endl; #define IOS ios_base::syn...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
206
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int N; cin >> N; int rem; while (N > 0) { rem = N % 10; N /= 10; if (rem == 7) { cout << "YES"; return 0; } } cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int N; cin >> N; int rem; while (N > 0) { rem = N % 10; N /= 10; if (rem == 7) { cout << "Yes"; return 0; } } cout << "No"; return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
87
n=int(input()) flag=0 while(n>0): if(n%10==7): flag=1 break n=n/10 if(flag==1): print("Yes") else: print("No")
n=int(input()) flag=0 while(n>0): if((n%10)==7): flag=1 break n=n//10 if(flag==1): print("Yes") else: print("No")
[["+", 0, 57, 15, 23, 0, 666, 0, 23, 0, 24], ["+", 0, 57, 15, 23, 0, 666, 0, 23, 0, 25], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]]
5
57
N = int(input()) bool_ = 0 while N > 0: if N % 10 == 7: print('Yes') bool_ = 1 break N /= 10 if bool_ != 1: print('No')
N = int(input()) bool_ = 0 while N > 0: if N % 10 == 7: print('Yes') bool_ = 1 break N //= 10 if bool_ != 1: print('No')
[["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 90], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 691]]
5
47
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int flg = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == '7') { flg = 1; break; } if (flg) cout << "Yes\n"; else cout << "No\n"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int flg = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == '7') { flg = 1; break; } } if (flg) cout << "Yes\n"; else cout << "No\n"; }
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
82
#include <bits/stdc++.h> using namespace std; #define pb push_back #define fi first #define se second #define all(container) container.begin(), container.end() #define fast \ ios::sync_with_stdio(0); ...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define fi first #define se second #define all(container) container.begin(), container.end() #define fast \ ios::sync_with_stdio(0); ...
[["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13]]
1
143
import sys X = input() test = list(X) print(test) for num in test: tmp = int(num) if tmp == 7: print("Yes") sys.exit() print("No")
import sys X = input() test = list(X) for num in test: tmp = int(num) if tmp == 7: print("Yes") sys.exit() 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
N = input().split('7') print(N) if len(N)>1: ans = 'Yes' else: ans = 'No' print(ans)
N = input().split('7') #print(N) if len(N)>1: ans = 'Yes' else: ans = 'No' print(ans)
[["-", 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
40
n=input() f=0 for i in n: if i=='7': print("Yes") f=1 break if f==0: print("NO")
n=input() f=0 for i in n: if i=='7': print("Yes") f=1 break if f==0: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
41
#include <bits/stdc++.h> using namespace std; int main() { char n[10]; cin >> n; if (n[0] == 7 || n[1] == 7 || n[2] == 7) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char n[4]; cin >> n; if (n[0] == '7' || n[1] == '7' || n[2] == '7') cout << "Yes"; else cout << "No"; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
61
a=int(input()) while a>0: if(a%10==7): print('Yes') break else:a=a/10 if a==0:print('No')
a=int(input()) while a>0: if(a%10==7): print('Yes') break else:a=a//10 if a==0:print('No')
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]]
5
47
n = input().split() print('Yes' if '7' in n else 'No')
n = list(input()) print('Yes' if '7' in n else 'No')
[["+", 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, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
25
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int n, flag = 0; cin >> n; while (n != 0) { if (n % 10 == 7) { flag = 1; break; } else n = n / 10; } if (flag == 1) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int n, flag = 0; cin >> n; while (n != 0) { if (n % 10 == 7) { flag = 1; break; } else n = n / 10; } if (flag == 1) cout << "Yes"; else cout << "No"; return 0; }
[["-", 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
78
n = input() if n.find('7') > 0 : print("Yes") else: print("No")
n = input() if n.find('7') >= 0 : print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
31
#include <iostream> using namespace std; int main() { string n; int f = 0; cin >> n; for (int i = 0; n[i] != '\0'; i++) { if (n[i] == '7') { cout << "Yes"; f = 1; } } if (f == 0) cout << "No"; }
#include <iostream> using namespace std; int main() { string n; int f = 0; cin >> n; for (int i = 0; n[i] != '\0'; i++) { if (n[i] == '7') { cout << "Yes"; f = 1; break; } } if (f == 0) cout << "No"; }
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
80
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i < n; i++) using namespace std; using f = float; using ll = long long; using ld = long double; using ull = unsigned long long; using vi = vector<int>; using pii = pair<int, int>; int main() { int n, flag_n = 0; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i < n; i++) using namespace std; using f = float; using ll = long long; using ld = long double; using ull = unsigned long long; using vi = vector<int>; using pii = pair<int, int>; int main() { int n, flag_n = 0; ...
[["-", 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
146
print("YNeos"["7" in input()::2])
print("NYoe s"["7"in input()::2])
[["-", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6]]
5
18
#include <bits/stdc++.h> using namespace std; int main() { int n; bool f = 1; cin >> n; while (n) { int rmdr; rmdr = n % 10; if (rmdr == 7) f = 0; n /= 10; } if (f == 0) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n; bool f = 1; cin >> n; while (n) { int rmdr; rmdr = n % 10; if (rmdr == 7) f = 0; n /= 10; } if (f == 0) cout << "Yes" << endl; else cout << "No" << 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
76
#include <iostream> using namespace std; int main(void) { int N; cin >> N; if (N - 7 % 10 == 0 || (N / 10 - 7) % 10 == 0 || (N / 100 - 7) % 10 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main(void) { int N; cin >> N; if ((N - 7) % 10 == 0 || (N / 10 - 7) % 10 == 0 || (N / 100 - 7) % 10 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 16, 31, 23, 0, 25]]
1
78
s = "117" if s.find("7") != -1: print ("Yes") else: print ("No")
s = input() if s.find("7") != -1: print ("Yes") else: print ("No")
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 654], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 655], ["+", 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
32
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; while (100 > N > 999) { cin >> N; } int second = N / 100 % 10; int third = N / 10 % 10; int fourth = N % 10; if (second == 7 || third == 7 || fourth == 7) { cout << "YES"; } else { cout << "NO"; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; while (100 > N > 999) { cin >> N; } int second = N / 100 % 10; int third = N / 10 % 10; int fourth = N % 10; if (second == 7 || third == 7 || fourth == 7) { cout << "Yes"; } else { cout << "No"; } }
[["-", 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
89
#include <bits/stdc++.h> using namespace std; string N; int main() { cin >> N; int count = 0; for (int i = 0; i < N.length(); i++) if (N[i] == '7') { count++; } if (count == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; string N; int main() { cin >> N; int count = 0; for (int i = 0; i < N.length(); i++) if (N[i] == '7') { count++; } if (count > 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 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, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
85
#include <iostream> using namespace std; int main() { int n, a, b, c; cin >> n; a = n % 10; b = n / 10 % 10; c = n / 100; if (a == 7 || b == 7 || c == 7) cout << "No"; else cout << "Yes"; return 0; }
#include <iostream> using namespace std; int main() { int n, a, b, c; cin >> n; a = n % 10; b = n / 10 % 10; c = n / 100; if (a == 7 || b == 7 || c == 7) cout << "Yes"; else cout << "No"; return 0; }
[["-", 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
75
#include <iostream> using namespace std; int main() { long long N; cin >> N; int flag = 0; while (N > 0) { int X = N % 10; if (X == 7) { flag = 1; break; } N = N / 10; } if (flag) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main() { long long N; cin >> N; int flag = 0; while (N > 0) { int X = N % 10; if (X == 7) { flag = 1; break; } N = N / 10; } if (flag) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 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
84
n = int(input()) flag = 0 for i in range(3): t = n%10 if t == 7: print("YES") flag = 1 break n = int(n/10) if flag == 0: print("NO")
n = int(input()) flag = 0 for i in range(3): t = n%10 if t == 7: print("Yes") flag = 1 break n = int(n/10) if flag == 0: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
58
#include <iostream> using namespace std; void solve() { int n; cin >> n; while (n != 0) { if (n % 10 == 7) { cout << "No]n"; return; } n = n / 10; } cout << "Yes\n"; return; } int main() { solve(); return 0; }
#include <iostream> using namespace std; void solve() { int n; cin >> n; while (n != 0) { if (n % 10 == 7) { cout << "Yes\n"; return; } n = n / 10; } cout << "No\n"; return; } int main() { solve(); return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
73
print("YES" if "7" in list(input()) else "NO")
print("Yes" if "7" in list(input()) else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
21
#include <stdio.h> int main() { int num, temp, factor = 1; scanf("%d", &num); temp = num; while (temp) { temp = temp / 10; factor = factor * 10; } int c, f = 0; while (factor > 1) { factor = factor / 10; c = (num / factor); if (c == 7) { printf("YES"); f++; break; ...
#include <stdio.h> int main() { int num, temp, factor = 1; scanf("%d", &num); temp = num; while (temp) { temp = temp / 10; factor = factor * 10; } int c, f = 0; while (factor > 1) { factor = factor / 10; c = (num / factor); if (c == 7) { printf("Yes"); f++; break; ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
120
N = input() if '7' in str(N): print('yes') else: print('no')
N = input() if '7' in str(N): 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
29
#include <iostream> using namespace std; int main() { int a; cin >> a; for (int i = 0; i < 3; i++) { if (a % 10 == 7) { cout << "yes" << endl; return 0; } a = a / 10; } cout << "No" << endl; }
#include <iostream> using namespace std; int main() { int a; cin >> a; for (int i = 0; i < 3; i++) { if (a % 10 == 7) { cout << "Yes" << endl; return 0; } a = a / 10; } cout << "No" << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
70
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if ((N - 7) % 10 == 0) cout << "Yes" << endl; if ((N / 10 - 7) % 10 == 0) cout << "Yes" << endl; if ((N / 100 - 7) % 10 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if ((N - 7) % 10 == 0) cout << "Yes" << endl; else if ((N / 10 - 7) % 10 == 0) cout << "Yes" << endl; else if ((N / 100 - 7) % 10 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
92
#include <bits/stdc++.h> #include <iostream> #include <string> #define ll long long using namespace std; int main() { ll n, k = 0; string s; cin >> n; s = to_string(n); for (int i = 0; i < s.size(); i++) { if (s[i] == '7') { cout << "yes"; k = 1; break; } } if (k == 0) cout <...
#include <bits/stdc++.h> #include <iostream> #include <string> #define ll long long using namespace std; int main() { ll n, k = 0; string s; cin >> n; s = to_string(n); for (int i = 0; i < s.size(); i++) { if (s[i] == '7') { cout << "Yes"; k = 1; break; } } if (k == 0) cout <...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
100
#include <stdio.h> int main() { int n, f = 0; scanf("%d", &n); for (int i = 1; i <= 100; i *= 10) { if ((n / i) % 10 == 7) { printf("YES\n"); f = 1; break; } } if (f == 0) printf("NO\n"); return 0; }
#include <stdio.h> int main() { int n, f = 0; scanf("%d", &n); for (int i = 1; i <= 100; i *= 10) { if ((n / i) % 10 == 7) { printf("Yes\n"); f = 1; break; } } if (f == 0) printf("No\n"); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
87
#include <bits/stdc++.h> using namespace std; int main() { int n, f = 0; cin >> n; while (n != 0) { if ((n % 10) == 7) { f = 1; break; } n /= 10; } if (f = 1) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int n, f = 0; cin >> n; while (n != 0) { if ((n % 10) == 7) { f = 1; break; } n /= 10; } if (f == 1) cout << "Yes"; else cout << "No"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
72
<?php $input_line = trim(fgets(STDIN)); $judge = "No"; for ($i = 0; $i < $input_line; $i++) { if ($input_lint[i] === "7" ){ $judge = "Yes"; break; } } echo $judge; ?>
<?php $input_line = trim(fgets(STDIN)); $judge = "No"; for ($i = 0; $i < strlen($input_line); $i++) { if ($input_line[$i] === "7"){ $judge = "Yes"; break; } } echo $judge; ?>
[["+", 0, 493, 0, 7, 0, 16, 12, 613, 63, 141], ["+", 0, 7, 0, 16, 12, 613, 3, 3, 0, 24], ["+", 0, 7, 0, 16, 12, 613, 3, 3, 0, 25], ["-", 15, 23, 0, 16, 31, 69, 0, 606, 0, 141], ["+", 15, 23, 0, 16, 31, 69, 0, 606, 0, 141], ["+", 15, 23, 0, 16, 31, 69, 0, 606, 0, 607]]
6
66
#include <iostream> using namespace std; int main() { int N, P; int L[2]; cin >> N; P = 0; for (int i = 0; i <= 2; i++) { L[i] = N % 10; N = N % 10; if (L[i] == 7) { P = 1; } } if (P == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int N, P; int L[3]; cin >> N; P = 0; for (int i = 0; i <= 2; i++) { L[i] = N % 10; N = N / 10; if (L[i] == 7) { P = 1; } } if (P == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
107
/* * main2.cpp * * Created on: 11 באפר׳ 2020 * Author: Dell */ #include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <list> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <unordered_map> #include <vector> using namespace std; int main() { ...
#include <algorithm> #include <cmath> #include <cstring> #include <iostream> #include <list> #include <stack> #include <stdio.h> #include <stdlib.h> #include <string> #include <unordered_map> #include <vector> using namespace std; int main() { string N; cin >> N; bool flag = true; for (char x : N) { if (x...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
88
#include <iostream> using namespace std; int main() { int num, rem; cin >> num; int ar = 0; int br = 0; while (num != 0) { rem = num % 10; if (num == 7) { ar += 1; } else { br += 1; } num = num / 10; } if (ar >= 1) cout << "Yes"; else cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int num, rem; cin >> num; int ar = 0; int br = 0; while (num != 0) { rem = num % 10; if (rem == 7) { ar += 1; } else { br += 1; } num = num / 10; } if (ar >= 1) cout << "Yes"; else cout << "No"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
92
N = str(input()) enc = 0 for char in list(N): if char == "7": enc +=1 if enc >= 1: return "Yes" else: return "No"
N = str(input()) enc = 0 for char in list(N): if char == "7": enc += 1 if enc >= 1: print("Yes") else: print("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], ["-", 0, 57, 75, 76, 8, 196, 0, 37, 0, 38], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196...
5
44
N = input() for i in range(len(N)): if int(N[i]) == 7: flag = 1 if flag == 1: print('Yes') else: print('No')
N = input() flag = 0 for i in range(len(N)): if int(N[i]) == 7: flag = 1 if flag == 1: 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], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
49
#include <iostream> using namespace std; int n; int main() { cin >> n; bool ok = false; while (n > 0) { if (n % 10 == 7) { ok = true; break; } n /= 10; } if (ok) cout << "YES"; else cout << "NO"; }
#include <iostream> using namespace std; int n; int main() { cin >> n; bool ok = false; while (n > 0) { if (n % 10 == 7) { ok = true; break; } n /= 10; } if (ok) cout << "Yes"; else cout << "No"; }
[["-", 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
69
n=input().count('7') if n>0: print('YES') else: print('NO')
n=input().count('7') if n>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
31
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define debug(x) cerr << #x << ": " <...
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define debug(x) cerr << #x << ": " <...
[["-", 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
132
#include <stdbool.h> #include <stdio.h> #include <string.h> void swap(int *a, int *b) { int tmp; tmp = *a; *a = *b; *b = tmp; } void Bsort(int data[], int size) { int i, j; for (i = 0; i < size - 1; i++) { for (j = 0; j < size - 1; j++) { if (data[j] > data[j + 1]) { swap(&data[j], &data...
#include <stdbool.h> #include <stdio.h> #include <string.h> void swap(int *a, int *b) { int tmp; tmp = *a; *a = *b; *b = tmp; } void Bsort(int data[], int size) { int i, j; for (i = 0; i < size - 1; i++) { for (j = 0; j < size - 1; j++) { if (data[j] > data[j + 1]) { swap(&data[j], &data...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
192
#include <bits/stdc++.h> using namespace std; void digit(int n, int k) { if (n < 0) n = -1 * n; if (n % 10 == k) { cout << "Yes\n"; return; } else if (n / 10 > 0) digit(n / 10, k); else cout << "no" << endl; } int main() { int n; cin >> n; digit(n, 7); return 0; }
#include <bits/stdc++.h> using namespace std; void digit(int n, int k) { if (n < 0) n = -1 * n; if (n % 10 == k) { cout << "Yes\n"; return; } else if (n / 10 > 0) digit(n / 10, k); else cout << "No" << endl; } int main() { int n; cin >> n; digit(n, 7); return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
98
def main(): n = input() print("Yes" if n.count(7) > 0 else "No") if __name__ == "__main__": main()
def main(): n = input() print("Yes" if n.count("7") > 0 else "No") if __name__ == "__main__": main()
[["+", 0, 666, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 666, 0, 652, 3, 4, 0, 557, 0, 655]]
5
39
#include <bits/stdc++.h> using namespace std; #define ll long long int //#define m 998244353 int m[1001][1001] = {0}; int main() { ios_base::sync_with_stdio(false); cout.tie(NULL); cin.tie(NULL); int t; cin >> t; int temp = 0; while (t != 0) { temp = t % 10; t = t / 10; if (temp == 7) { ...
#include <bits/stdc++.h> using namespace std; #define ll long long int //#define m 998244353 int m[1001][1001] = {0}; int main() { ios_base::sync_with_stdio(false); cout.tie(NULL); cin.tie(NULL); // cin>>t; int t; cin >> t; int temp = 0; while (t != 0) { temp = t % 10; t = t / 10; if (te...
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
110
#include <algorithm> #include <iostream> #include <sstream> using namespace std; int main() { int n, i; cin >> n; stringstream ss; ss << n; string s; ss >> s; int len = s.length(); for (i = 0; i < len; i++) { if (s[i] == '7') { cout << "YES"; return 0; } } cout << "NO"; ...
#include <algorithm> #include <iostream> #include <sstream> using namespace std; int main() { int n, i; cin >> n; stringstream ss; ss << n; string s; ss >> s; int len = s.length(); for (i = 0; i < len; i++) { if (s[i] == '7') { cout << "Yes"; return 0; } } cout << "No"; ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
94
#include <bits/stdc++.h> #include <cstdlib> using namespace std; #define ll long long #define ar array int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; bool ans = false; for (int i = n; i > 0; i /= 10) { if (i % 10 == 7) { ans = true; break; } } if (ans) { cou...
#include <bits/stdc++.h> #include <cstdlib> using namespace std; #define ll long long #define ar array int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; bool ans = false; for (int i = n; i > 0; i /= 10) { if (i % 10 == 7) { ans = true; break; } } if (ans) { cou...
[["-", 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
100
#include <bits/stdc++.h> // ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); // clock_t start=clock();clock_t // end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl; using namespace std; typedef long long ll; typedef unsigned long long ull; typedef unsigned int ui; typedef pair<int, int> pii; typedef pair<pii...
#include <bits/stdc++.h> // ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); // clock_t start=clock();clock_t // end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl; using namespace std; typedef long long ll; typedef unsigned long long ull; typedef unsigned int ui; typedef pair<int, int> pii; typedef pair<pii...
[["-", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22]]
1
729
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.size(); i++) if (s[i] == '7') { cout << "YES" << endl; return 0; } cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.size(); i++) if (s[i] == '7') { cout << "Yes" << endl; return 0; } 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
72
a = input() b = str(a) print(b) if '7' in b: print('Yes') else: print('No')
a = input() b = str(a) if '7' in b: 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
36
t=input() if t.count("7")!= 0: print("YES") else: print("NO")
t=input() if t.count("7")!= 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
31
#include <bits/stdc++.h> using namespace std; #define int ll #define mainspring cout << "mainspring\n"; #define barrel cout << "barrel\n"; #define escapement cout << "escapement\n"; #define pb push_back #define eb emplace_back #define all(v) (v).begin(), (v).end() #define sz(v) (int)((v).size()) #define fs first #def...
#include <bits/stdc++.h> using namespace std; #define int ll #define mainspring cout << "mainspring\n"; #define barrel cout << "barrel\n"; #define escapement cout << "escapement\n"; #define pb push_back #define eb emplace_back #define all(v) (v).begin(), (v).end() #define sz(v) (int)((v).size()) #define fs first #def...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
337
N = input() print("Yes" if N.contains("7") else "No")
N = input() print("Yes" if N.__contains__("7") else "No")
[["-", 3, 4, 0, 41, 0, 652, 63, 319, 319, 22], ["+", 3, 4, 0, 41, 0, 652, 63, 319, 319, 22]]
5
24
#include <iostream> using namespace std; int main() { int n; cin >> n; int flag = 0; while (n != 0) { int digi = n % 10; if (digi == 7) { cout << "Yes"; flag = 1; } n = n / 10; } if (flag != 1) cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int n; cin >> n; int flag = 0; while (n != 0) { int digi = n % 10; if (digi == 7) { cout << "Yes"; flag = 1; break; } n = n / 10; } if (flag != 1) cout << "No"; return 0; }
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
78
#include <bits/stdc++.h> using namespace std; #define fur(i, n, m, k) for (int i = (n); i < (m); i += k) #define fr(i, n, m, k) for (int i = (n - 1); i >= (m); i -= k) #define pub push_back #define pob pop_back #define Sz size() #define F first #define S second typedef pair<int, int> pii; typedef long long ll; typede...
#include <bits/stdc++.h> using namespace std; #define fur(i, n, m, k) for (int i = (n); i < (m); i += k) #define fr(i, n, m, k) for (int i = (n - 1); i >= (m); i -= k) #define pub push_back #define pob pop_back #define Sz size() #define F first #define S second typedef pair<int, int> pii; typedef long long ll; typede...
[["-", 0, 34, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 34, 31, 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
153
import java.util.*; public class Main { private static String solve(int in) { while (in > 0) { if (in % 10 == 7) return "YES"; in = in / 10; } return "NO"; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int in = sc.nextInt(); sc.close()...
import java.util.*; public class Main { private static String solve(int in) { while (in > 0) { if (in % 10 == 7) return "Yes"; in = in / 10; } return "No"; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int in = sc.nextInt(); sc.close()...
[["-", 8, 196, 0, 57, 64, 37, 0, 5, 0, 491], ["+", 8, 196, 0, 57, 64, 37, 0, 5, 0, 491], ["-", 0, 195, 8, 196, 0, 37, 0, 5, 0, 491], ["+", 0, 195, 8, 196, 0, 37, 0, 5, 0, 491]]
3
104
import java.util.Scanner; public class Main { public static void main(String[] args) { Boolean flag = false; Scanner scan = new Scanner(System.in); String N = scan.nextLine(); char[] Narray = N.toCharArray(); for (char ln : Narray) { if (ln == '7') { System.out.println("Yes"); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Boolean flag = false; Scanner scan = new Scanner(System.in); String N = scan.nextLine(); char[] Narray = N.toCharArray(); for (char ln : Narray) { if (ln == '7') { System.out.println("Yes"); ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
109
def main(): # -*- coding: utf-8 -*- # 整数の入力 a = int(input()) # スペース区切りの整数の入力 # b, c = map(int, input().split()) # b, c = map(int, input()) # # 文字列の入力 # a = input() # 出力 # print("{} {}".format(a+b+c, s)) # mul = a if '7' in a: print("Yes") else: pri...
def main(): # -*- coding: utf-8 -*- # 整数の入力 # a = int(input()) # スペース区切りの整数の入力 # b, c = map(int, input().split()) # b, c = map(int, input()) # # 文字列の入力 a = input() # 出力 # print("{} {}".format(a+b+c, s)) # mul = a if '7' in a: print("Yes") else: pri...
[["-", 8, 196, 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
n = list(str(input())) cnt = 0 for i in range(0, len(n)): if int(s[i]) == 7: print("Yes") cnt += 1 break if cnt == 0: print("No")
n = list(str(input())) cnt = 0 for i in range(0, len(n)): if int(n[i]) == 7: print("Yes") cnt += 1 break if cnt == 0: print("No")
[["-", 15, 666, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 15, 666, 0, 652, 3, 4, 0, 206, 51, 22]]
5
59
#include <bits/stdc++.h> #define ll long long #define pb push_back #define vi vector<int> #define vii vector<int, int> #define po pop_back #define hell 1000000007 using namespace std; void solve() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "YES"; return; } n /= 10; } ...
#include <bits/stdc++.h> #define ll long long #define pb push_back #define vi vector<int> #define vii vector<int, int> #define po pop_back #define hell 1000000007 using namespace std; void solve() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "Yes"; return; } n /= 10; } ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
96
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; int a = N.size(); int count = 0; for (int i = 0; i < a; i++) { if (N.at(i) == 7) { count++; } } if (count > 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; int a = N.size(); int count = 0; for (int i = 0; i < a; i++) { if (N.at(i) == '7') { count++; } } if (count == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
92
#include <iostream> using namespace std; string N; int cnt = 0; int main() { cin >> N; for (int i = 0; i < N.length(); i++) { if (N[0] == '7') { cnt++; } } if (cnt != 0) { printf("Yes"); } else { printf("No"); } }
#include <iostream> using namespace std; string N; int cnt = 0; int main() { cin >> N; for (int i = 0; i < N.length(); i++) { if (N[i] == '7') { cnt++; } } if (cnt != 0) { printf("Yes"); } else { printf("No"); } }
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 22]]
1
85
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define R(i, n) for (int i = 0; i < n; i++) #define S(a) scanf("%d", &a) #define S2(a, b) scanf("%d%d", &a, &b) #define S3(a, b, c) scanf("%d%d%d", &a, &b, &c) #define SA(i, n, ...
#include <algorithm> #include <cmath> #include <ctime> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define R(i, n) for (int i = 0; i < n; i++) #define S(a) scanf("%d", &a) #define S2(a, b) scanf("%d%d", &a, &b) #define S3(a, b, c) scanf("%d%d%d", &a, &b, &c) #define SA(i, n, ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
157
#include <bits/stdc++.h> #define fast ios::sync_with_stdio(false), cin.tie(0); #define ll long long #define endl '\n' using namespace std; main() { fast; int n, f = 0; while (n) { if ((n % 10) == 7) f = 1; n /= 10; } if (f) cout << "Yes\n"; else cout << "No\n"; }
#include <bits/stdc++.h> #define fast ios::sync_with_stdio(false), cin.tie(0); #define ll long long #define endl '\n' using namespace std; main() { fast; int n, f = 0; cin >> n; while (n) { if ((n % 10) == 7) f = 1; n /= 10; } if (f) cout << "Yes\n"; else cout << "No\n"; }
[["+", 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
72
#include <bits/stdc++.h> #include <stdio.h> using namespace std; #define inputInt(a) \ int a; \ cin >> a; #define inputInt2(a, b) \...
#include <bits/stdc++.h> #include <stdio.h> using namespace std; #define inputInt(a) \ int a; \ cin >> a; #define inputInt2(a, b) \...
[["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
397
x = input() if '7' in x : print(Yes) else : print(No)
x = input() if '7' in x : print('Yes') else : print('No')
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
22
#include <stdio.h> int main() { int n; scanf("%d", &n); int flag = 1; while (n > 0) { if (n % 10 == 7) { flag = 0; break; } n /= 10; } if (flag) printf("NO"); else printf("YES"); return 0; }
#include <stdio.h> int main() { int n; scanf("%d", &n); int flag = 1; while (n > 0) { if (n % 10 == 7) { flag = 0; break; } n /= 10; } if (flag) printf("No"); else printf("Yes"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
76
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll N, ans = 0; cin >> N; while (N) { if (N % 10 == 7) { ans++; break; } N = N / 10; } if (ans == 1) { cout << "YES" << "\n"; } else { cout << "NO" << "\n"; } }
#include <bits/stdc++.h> using namespace std; #define ll long long int int main() { ll N, ans = 0; cin >> N; while (N) { if (N % 10 == 7) { ans++; break; } N = N / 10; } if (ans == 1) { cout << "Yes" << "\n"; } else { cout << "No" << "\n"; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
84
#include <iostream> using namespace std; int main() { string N; cin >> N; for (int i = 0; i < N.size(); i++) { if (N.at(i) == '7') { cout << "Yes" << endl; break; } if (i == N.size()) { cout << "No" << endl; } } }
#include <iostream> using namespace std; int main() { string N; cin >> N; for (int i = 0; i < N.size(); i++) { if (N.at(i) == '7') { cout << "Yes" << endl; break; } if (i == N.size() - 1) { cout << "No" << endl; } } }
[["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
84
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int counter = 0; if (S.find("7") <= 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> #include <string> using namespace std; int main() { string S; cin >> S; int counter = 0; if (S.find("7") < 4) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
60
n = str(input()) for char in chars: if int(char) == 7: n = 1 if n != 0: break if n == 0: print('No') else: print('Yes')
chars = str(input()) n = 0 for char in chars: if int(char) == 7: n = 1 if n != 0: break if n == 0: print('No') else: print('Yes')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]]
5
49
#include <iostream> using namespace std; int main() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "YES" << endl; return 0; } n = n / 10; } cout << "NO" << endl; }
#include <iostream> using namespace std; int main() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "Yes" << endl; return 0; } n = n / 10; } cout << "No" << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
62
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long int lli; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<lli> vli; typedef vector<pii> vii; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_orde...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long int lli; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<lli> vli; typedef vector<pii> vii; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_orde...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
680
// BISMILLAHIR RAHMANIR RAHIM // ALLAH HU AKABR #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool flag = false; for (int i = 0; i < s.size(); i++) { if (s[i] == '7') { flag = true; break; } } if (flag == true) cout << "YES" << endl; else cout <...
// BISMILLAHIR RAHMANIR RAHIM // ALLAH HU AKABR #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; bool flag = false; for (int i = 0; i < s.size(); i++) { if (s[i] == '7') { flag = true; break; } } if (flag == true) cout << "Yes" << endl; else cout <...
[["-", 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
88
#include <algorithm> #include <cmath> #include <iostream> using namespace std; long long v; int main() { bool flag = 0; cin >> v; if (v % 10 == 7) flag = 1; else if ((v / 10) % 100 == 7) flag = 1; else if ((v / 100) % 1000 == 7) flag = 1; if (flag == 1) cout << "Yes"; else cout << "N...
#include <algorithm> #include <cmath> #include <iostream> using namespace std; long long v; int main() { bool flag = 0; cin >> v; if (v % 10 == 7) flag = 1; else if ((v / 10) % 10 == 7) flag = 1; else if ((v / 100) % 10 == 7) flag = 1; if (flag == 1) cout << "Yes"; else cout << "No";...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
97
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int t; cin >> t; int flag = 0; while (t > 0) { int dig = t % 10; if (dig == 7) { cout << "Yes" << endl; flag = 1; } t = t / 10; } if (flag == 1) return 0; cout << "No" << endl; return ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int t; cin >> t; int flag = 0; while (t > 0) { int dig = t % 10; if (dig == 7) { cout << "Yes" << endl; flag = 1; break; } t = t / 10; } if (flag == 1) return 0; cout << "No" << en...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
91
#include <iostream> using namespace std; int main() { int n; cin >> n; while (n) { int digit = n % 10; if (digit % 7 == 0) { cout << "Yes"; return 0; } n = n / 10; } cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int n; cin >> n; while (n) { int digit = n % 10; if (digit == 7) { cout << "Yes"; return 0; } n = n / 10; } cout << "No"; return 0; }
[["-", 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, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
66
n = int(input) Flag = False for i in n: if i == 7: Flag = True if Flag: print("Yes") else: print("No")
n = input() Flag = False for i in n: if i == "7": Flag = True if Flag: 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], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
39
#include <stdio.h> int main() { int x; int a, flag = 0; scanf("%d", &x); for (int i = 0; x != 0; i++) { a = x % 10; if (a == 7) { break; flag = 1; } x = x / 10; } if (flag == 1) printf("Yes"); else printf("No"); }
#include <stdio.h> int main() { int x; int a = 0, flag = 0; scanf("%d", &x); for (int i = 0; x != 0; i++) { a = x % 10; if (a == 7) { flag = 1; break; } x = x / 10; } if (flag == 1) printf("Yes"); else printf("No"); }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]]
0
91
#include <stdio.h> int main() { int num, rem; scanf("%d", &num); while (rem != 0) { rem = num % 10; if (rem == 7) { printf("Yes\n"); return 0; } num = num / 10; } printf("No\n"); return 0; }
#include <stdio.h> int main() { int num, rem; scanf("%d", &num); while (num > 0) { rem = num % 10; if (rem == 7) { printf("Yes\n"); return 0; } num = num / 10; } printf("No\n"); return 0; }
[["-", 8, 9, 0, 52, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 79], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47]]
0
73
#include <stdio.h> #include <stdlib.h> int main(void) { int a = 0; scanf("%d\n", &a); for (int i = 0; i < 3; i++) { if (a % 10 == 7) { printf("Yes"); exit(0); a /= 10; } } printf("No"); return 0; }
#include <stdio.h> #include <stdlib.h> int main(void) { int a = 0; scanf("%d\n", &a); for (int i = 0; i < 3; i++) { if (a % 10 == 7) { printf("Yes"); exit(0); } a /= 10; } printf("No"); return 0; }
[["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
0
79
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n; cin >> n; ll s; bool flag = false; while (n != 0) { s = n % 10; if (s == 7) { flag = true; break; } n /= 10; } if (flag) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n; cin >> n; ll s; bool flag = false; while (n != 0) { s = n % 10; if (s == 7) { flag = true; break; } n /= 10; } if (flag) cout << "Yes" << endl; else cout << "No" << 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
83
if gets.chomp.include("7") puts "Yes" else puts "No" end
if gets.chomp.include?("7") puts "Yes" else puts "No" end
[["-", 36, 36, 0, 493, 0, 121, 15, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 121, 15, 652, 735, 22]]
4
21
#include <iomanip> #include <iostream> #include <math.h> using namespace std; int main() { int64_t i; // preparation for int n; int a[3]; cin >> n; for (i = 0; i < 3; i++) { a[i] = n % 10; n = (n - a[i]) / 10; if (a[i] == 7) { cout << "Yes"; break; } else { } if (i = 2)...
#include <iomanip> #include <iostream> #include <math.h> using namespace std; int main() { int64_t i; // preparation for int n; int a[3]; cin >> n; for (i = 0; i < 3; i++) { a[i] = n % 10; n = (n - a[i]) / 10; if (a[i] == 7) { cout << "Yes"; break; } else { } if (i == 2...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
112
N=input() n=list(N) x= '7' in n if x is True: print("yes") else: print("no")
N=input() n=list(N) x= '7' in n if x is 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
37
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cassert> #include <complex> #include <cstdlib> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <queue> #include <random> #includ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cassert> #include <complex> #include <cstdlib> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <queue> #include <random> #includ...
[["+", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 17, 90], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 9, 0, 1, 0, 35]]
1
156
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string n; long long x, k = 0; cin >> n; x = n.size(); for (int i = 0; i < x; i++) { if (n[i] == '7') { k++; break; } } if (k == 1) { cout << "YES" << endl; } else cout << "NO" << endl; }
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string n; long long x, k = 0; cin >> n; x = n.size(); for (int i = 0; i < x; i++) { if (n[i] == '7') { k++; break; } } if (k == 1) { 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
96
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; #define repr(i, n) for (int i = n; i >= 0; i--) #define reprl(i, n) for (ll i = n; i >= 0; i--) #define all(v) v.begin(), v.end() ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> P; #define repr(i, n) for (int i = n; i >= 0; i--) #define reprl(i, n) for (ll i = n; i >= 0; i--) #define all(v) v.begin(), v.end() ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll ...
[["+", 31, 16, 12, 2, 3, 4, 0, 16, 17, 79], ["+", 12, 2, 3, 4, 0, 16, 12, 343, 345, 348], ["+", 12, 2, 3, 4, 0, 16, 12, 343, 0, 349], ["+", 12, 2, 3, 4, 0, 16, 12, 343, 141, 22]]
1
173
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 7 || b == 7 || c == 7) cout << "Yes\n"; else cout << "No\n"; }
#include <iostream> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; if (a == '7' || b == '7' || c == '7') cout << "Yes\n"; else cout << "No\n"; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 51, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
56
n = int(input()) yes = False while n: digit = n % 10 n = n / 10 if digit == 7: yes = True print('Yes') if yes else print('No')
n = int(input()) yes = False while n: digit = n % 10 n = n // 10 if digit == 7: yes = True print('Yes') if yes else print('No')
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]]
5
47
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int i, count = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == '7') { cout << "Yes" << endl; count = 1; } } if (count == 0) cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int i, count = 0; for (i = 0; i < s.length(); i++) { if (s[i] == '7') { cout << "Yes" << endl; count = 1; break; } } if (count == 0) cout << "No" << endl; }
[["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]]
1
85
#include <stdio.h> int main() { int m = 0, n, cnt = 0, i = 0, j; scanf("%d", &n); j = n; while (n != 0) { n = n / 10; ++cnt; } while (cnt > 0) { m = j / 10; i = m * 10; if (j - i == 7) { printf("Yes\n"); return 0; } cnt--; } printf("No\n"); }
#include <stdio.h> int main() { int m = 0, n, cnt = 0, i = 0, j; scanf("%d", &n); j = n; while (n != 0) { n = n / 10; ++cnt; } while (cnt > 0) { m = j / 10; i = m * 10; if (j - i == 7) { printf("Yes\n"); return 0; } cnt--; j = m; } printf("No\n"); }
[["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
0
108
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int n; int flag = 0; cin >> n; while (n != 0) { if (n % 10 == 7) { flag = 1; break; } n /= 10; } if (flag == 1) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int n; int flag = 0; cin >> n; while (n != 0) { if (n % 10 == 7) { flag = 1; break; } n /= 10; } if (flag == 1) cout << "Yes" << endl; else cout << "No" << 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
81
#include <iostream> using namespace std; int main() { short int n, i, d, c = 0; cin >> n; for (i = n; i > 0; i = i / 10) { d = i % 10; if (d == 7) { c = 1; break; } else c = 0; } if (c == 1) cout << "YES"; else cout << "NO"; return 0; }
#include <iostream> using namespace std; int main() { short int n, i, d, c = 0; cin >> n; for (i = n; i > 0; i = i / 10) { d = i % 10; if (d == 7) { c = 1; break; } else c = 0; } if (c == 1) cout << "Yes"; else cout << "No"; return 0; }
[["-", 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
93
n = int(input()) a = n.find("7") if a>-1: print("Yes") else : print("No")
n = int(input()) a = str(n).find("7") if a>-1: print("Yes") else : print("No")
[["+", 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]]
5
38
n = input() isSeven = False for i in n: if n == "7": isSeven = True if(isSeven): print("Yes") else: print("No")
n = input() isSeven = False for i in n: if i == "7": isSeven = True if(isSeven): print("Yes") else: print("No")
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]]
5
42