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() { string s; cin >> s; int flag = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == '7') flag = 1; } if (flag = 0) cout << "No" << endl; else cout << "Yes" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int flag = 0; for (int i = 0; i < s.size(); i++) { if (s[i] == '7') flag = 1; } if (flag == 0) cout << "No" << endl; else cout << "Yes" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
82
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; #define ll long long int #define sec ->second #define fir ->first #define mapi map<int, int> #define veci vector<int, int> #define pb(a) .push_back(a) #define pob(a) .pop_back(a) #define fori(a) for (int i =...
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; #define ll long long int #define sec ->second #define fir ->first #define mapi map<int, int> #define veci vector<int, int> #define pb(a) .push_back(a) #define pob(a) .pop_back(a) #define fori(a) for (int i =...
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
127
#include <iostream> using namespace std; int main() { int i, x; cin >> x; for (i = 0; i < 3; i++) { if (x % 10 == 7) { cout << "Yes"; return 0; } } cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int i, x; cin >> x; for (i = 0; i < 3; i++) { if (x % 10 == 7) { cout << "Yes"; return 0; } x = x / 10; } cout << "No"; return 0; }
[["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
64
N = input a = "No" for n in N: if n == "7": a = "Yes" print (a)
N = input () a = "No" for n in N: if n == "7": a = "Yes" print (a)
[["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
29
#include <bits/stdc++.h> using namespace std; int K, N, C; bool flag = false; int main() { cin >> N; for (int i = 0; i < 3; i++) { if (N % 10 == 7) { flag = true; break; } } if (flag) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <bits/stdc++.h> using namespace std; int K, N, C; bool flag = false; int main() { cin >> N; for (int i = 0; i < 3; i++) { if (N % 10 == 7) { flag = true; break; } N = N / 10; } if (flag) { cout << "Yes"; } else { cout << "No"; } return 0; }
[["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
84
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll x; cin >> x; while (x != 0) { ll r = x % 10; x = x / 10; if (r == 7) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll x; cin >> x; while (x != 0) { ll r = x % 10; x = x / 10; if (r == 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
76
n = gets.chomp.split("").map(&:to_i) n.each do |i| if i == 7 ans = "Yes" return else ans = "No" end end puts ans
n = gets.chomp.split("").map(&:to_i) ans = "" n.each do |i| if i == 7 ans = "Yes" puts ans return else ans = "No" end end puts ans
[["+", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 0, 493, 0, 662, 12, 557, 0, 62], ["+", 8, 736, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 121, 64, 749, 0, 652, 3, 4, 0, 22]]
4
44
#include "stdio.h" #include "time.h" #include <algorithm> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #define MAX_INT ((unsigned)(-1) >> 1) #define MIN_INT (~MAX_INT) #define db printf("where!\n"); #define pb push_back using namespace std;...
#include "stdio.h" #include "time.h" #include <algorithm> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #define MAX_INT ((unsigned)(-1) >> 1) #define MIN_INT (~MAX_INT) #define db printf("where!\n"); #define pb push_back using namespace std;...
[["-", 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
200
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, N) for (int i = 0; i < (int)(N); i++) int main() { int n; int x = n % 10; int y = n / 100 % 10; int z = n / 10 % 10; string ans = "No"; if (x == 7 || y == 7 || z == 7) { ans = "Yes"; } cout << an...
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, N) for (int i = 0; i < (int)(N); i++) int main() { int n; cin >> n; int x = n % 10; int y = n / 100 % 10; int z = n / 10 % 10; string ans = "No"; if (x == 7 || y == 7 || z == 7) { ans = "Yes"; } ...
[["+", 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
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); if (n.indexOf('7') > 0) { System.out.println("Yes"); } else { System.out.println("No"); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); if (n.indexOf('7') >= 0) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]]
3
82
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int N; cin >> N; bool has7 = false; while (N && !has7) { int d = N % 10; if (d == 7) { has7 = true; } N /= 10; } cout << (has7 ? "YES" : "NO") << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int N; cin >> N; bool has7 = false; while (N && !has7) { int d = N % 10; if (d == 7) { has7 = true; } N /= 10; } cout << (has7 ? "Yes" : "No") << endl; return 0; }
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
89
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <set> #include <sstream> #include <s...
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <set> #include <sstream> #include <s...
[["+", 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
400
N=int(input()) C=str(N) c=0 for i in range(len(C)): if C[i]==7: c+=1 if c==0: print("No") else: print("Yes")
N=int(input()) C=str(N) c=0 for i in range(len(C)): if int(C[i])==7: c+=1 if c==0: print("No") else: print("Yes")
[["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
58
a=int(input()) s = str(a) l = len(str(a)) c = 0 for i in range(l): if s[i] == "7": c = 1 break if c == 1: print("yes") else: print("no")
a=int(input()) s = str(a) l = len(str(a)) c = 0 for i in range(l): if s[i] == "7": c = 1 break if c == 1: 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
67
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define debug(n) cout << "DEBUG1 " << n << "\n"; #define debug2(n, m) cout << "DEBUG2 " << n << ' ' << m << "\n"; #define debug3(n, m, x) cout << "DEBUG3 " << n << ' ' << m << ' ' << x << "\n"; #define ss_def ...
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define debug(n) cout << "DEBUG1 " << n << "\n"; #define debug2(n, m) cout << "DEBUG2 " << n << ' ' << m << "\n"; #define debug3(n, m, x) cout << "DEBUG3 " << n << ' ' << m << ' ' << x << "\n"; #define ss_def ...
[["-", 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
735
#include <iostream> using namespace std; int main() { int n; cin >> n; int m; bool flag = 0; while (n != 0) { m = n % 10; if (m == 7) { flag = 1; break; } n = n / 10; } if (flag == 1) { cout << "YES"; } else { cout << "NO"; } return 0; }
#include <iostream> using namespace std; int main() { int n; cin >> n; int m; bool flag = 0; while (n != 0) { m = n % 10; if (m == 7) { flag = 1; break; } n = n / 10; } if (flag == 1) { cout << "Yes"; } else { cout << "No"; } return 0; }
[["-", 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
87
#include <iostream> using namespace std; int main() { int t = 0; cin >> t; while (t != 0) { int a = t % 10; if (a == 7) { cout << "Yes"; break; } t /= 10; } cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int t = 0; cin >> t; while (t != 0) { int a = t % 10; if (a == 7) { cout << "Yes"; return 0; } t /= 10; } cout << "No"; return 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
65
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define ll long long #define ld long double #define fo(i, k, n) \ for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1) int main() { int n; cin >> n; int f...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define ll long long #define ld long double #define fo(i, k, n) \ for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1) int main() { int n; cin >> n; int f...
[["+", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 9, 0, 1, 0, 35]]
1
96
i_str = str(input()) if i_str.find('7') > 0: print('Yes') else: print('No')
i_str = str(input()) if i_str.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
34
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; int t = 0; for (int i = 0; N[i] != '\0'; i++) { if (N[i] == '7') { t = 1; } else { t = t; } } if (t == 0) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; int t = 0; for (int i = 0; N[i] != '\0'; i++) { if (N[i] == '7') { t = 1; } else { t = t; } } if (t == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 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> //#include <ext/pb_ds/assoc_container.hpp> // using namespace __gnu_pbds; using namespace std; #define ll long long typedef vector<int> vi; typedef pair<int, int> pi; typedef unordered_map<int, int> um; typedef unordered_set<int> us; typedef priority_queue<int> pq; typedef deque<int> dq; ty...
#include <bits/stdc++.h> //#include <ext/pb_ds/assoc_container.hpp> // using namespace __gnu_pbds; using namespace std; #define ll long long typedef vector<int> vi; typedef pair<int, int> pi; typedef unordered_map<int, int> um; typedef unordered_set<int> us; typedef priority_queue<int> pq; typedef deque<int> dq; ty...
[["-", 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
225
n = list(input()) for i in n: if str(i) == 7: print('Yes') exit() print('No')
n = list(input()) for i in n: if int(i) == 7: print('Yes') exit() print('No')
[["-", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22]]
5
36
#include <iostream> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int n, f = 0; cin >> n; rep(i, 3) { if (n % 10 == 7) f = 1; n %= 10; } if (f == 1) cout << "Yes"; else cout << "No"; return 0; }
#include <iostream> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int n, f = 0; cin >> n; while (n > 0) { if (n % 10 == 7) f = 1; n /= 10; } if (f == 1) cout << "Yes"; else cout << "No"; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 52, 0, 89], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16...
1
78
#include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); string s; cin >> s; int ok = 0; int n = s.length(); for (int i = 0; i < n; i++) { if (s[i] == '7') { ok = 1; break; } } puts(ok ? "YES" : "NO"); ...
#include <bits/stdc++.h> using namespace std; int main() { // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); string s; cin >> s; int ok = 0; int n = s.length(); for (int i = 0; i < n; i++) { if (s[i] == '7') { ok = 1; break; } } puts(ok ? "Yes" : "No"); ...
[["-", 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
83
#include <bits/stdc++.h> using namespace std; void fast() { cin.tie(0); cin.sync_with_stdio(0); } int main() { fast(); string n; cin >> n; if (n.find("7") != string::npos) { cout << "YES"; } else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; void fast() { cin.tie(0); cin.sync_with_stdio(0); } int main() { fast(); string n; cin >> n; if (n.find("7") != string::npos) { cout << "Yes"; } else cout << "No"; return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 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
76
#include <bits/stdc++.h> #define rep(i, a, b) for (int(i) = (a); (i) <= (b); (i)++) #define pii pair<int, int> #define vi vector<int> #define vit vector<int>::iterator it #define mii map<int, int> #define mis map<int, string> #define msi map<string, int> #define X first #define Y second #define all(a) a.begin(), a.end...
#include <bits/stdc++.h> #define rep(i, a, b) for (int(i) = (a); (i) <= (b); (i)++) #define pii pair<int, int> #define vi vector<int> #define vit vector<int>::iterator it #define mii map<int, int> #define mis map<int, string> #define msi map<string, int> #define X first #define Y second #define all(a) a.begin(), a.end...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 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
163
#include <stdio.h> int main() { int N, first, second, third; scanf("%d\n", &N); if ((first = N % 10) == 7) { printf("Yes\n"); return 0; } if ((second = (((N - first) / 10) % 10) == 7)) { printf("Yes\n"); return 0; } if ((second = (((N - first - second) / 10) % 10) == 7)) { printf("Ye...
#include <stdio.h> int main() { int N, first, second, third; scanf("%d", &N); if ((first = N % 10) == 7) { printf("Yes\n"); return 0; } if ((second = ((N = (N - first) / 10) % 10) == 7)) { printf("Yes\n"); return 0; } if ((second = (((N - second) / 10) % 10) == 7)) { printf("Yes\n");...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 31, 23, 0, 16, 31, 23, 0, 11, 31, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 11, 17, 32], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["-", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22]]
0
136
#include <bits/stdc++.h> using namespace std; #define int long long #define pii pair<int, int> #define pb push_back signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; bool found = 0; for (auto x : s) { found |= (x == '7'); } if (found) { cou...
#include <bits/stdc++.h> using namespace std; #define int long long #define pii pair<int, int> #define pb push_back signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string s; cin >> s; bool found = 0; for (auto x : s) { found |= (x == '7'); } if (found) { 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
99
import java.util.*; public class Main { // Main public static void main(String[] args) { Scanner s = new Scanner(System.in); long a = s.nextLong(); boolean isExists = false; while (a > 0) { if (a % 10 == 7) { isExists = true; break; } a = a / 10; } if (isExist...
import java.util.*; public class Main { // Main public static void main(String[] args) { Scanner s = new Scanner(System.in); long a = s.nextLong(); boolean isExists = false; while (a > 0) { if (a % 10 == 7) { isExists = true; break; } a = a / 10; } if (isExist...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
111
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <vector> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < 3; i++) { if (n % 10 == 7) { cout << "Yes" << endl; return 0; } else { n %= 10; } } cout << "No" << endl; retu...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <vector> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < 3; i++) { if (n % 10 == 7) { cout << "Yes" << endl; return 0; } else { n /= 10; } } cout << "No" << endl; retu...
[["-", 75, 76, 0, 9, 0, 1, 0, 11, 17, 132], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 90]]
1
82
s = input().split() ans = 'No' for e in s: if e == '7': ans = 'Yes' break print(ans)
s = input() ans = 'No' for e in s: if e == '7': ans = 'Yes' break print(ans)
[["-", 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], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
36
s=input() a=[int(c) for c in s] flag=False for i in a: if i==7: flag=True if flag==True: print("YES") else: print("NO")
s=input() a=[int(c) for c in s] flag=False for i in a: if i==7: flag=True if flag==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
52
x = list(input()) j = 0 for i in x: if int(i) != 7: j = 1 if j == 0: print('Yes') else: print('No')
x = list(input()) j = 0 for i in x: if int(i) == 7: j = 1 if j == 1: print('Yes') else: print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
46
#include <bits/stdc++.h> using namespace std; int main() { int n, a = 0, rem; cin >> n; while (n > 0) { rem = n % 10; if (rem == 7) { a = 1; cout << "Yes"; } n = n / 10; } if (a == 0) cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, a = 0, rem; cin >> n; while (n > 0) { rem = n % 10; if (rem == 7) { a = 1; cout << "Yes"; break; } n = n / 10; } if (a == 0) 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
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String S = sc.next(); if (S.contains("7")) { System.out.println("yes"); } else { System.out.println("No"); } } }
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String S = sc.next(); if (S.contains("7")) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
83
#include <iostream> using namespace std; int main() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "YES"; break; } n = n / 10; } if (n == 0) { cout << "NO"; } return 0; }
#include <iostream> using namespace std; int main() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "Yes"; break; } n = n / 10; } if (n == 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]]
1
68
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int a, b, c; a = N % 10; N /= 10; b = N % 10; N /= 10; c = N % 10; if (c == 7 || a == 7 || b || 7) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int a, b, c; a = N % 10; N /= 10; b = N % 10; N /= 10; c = N % 10; if (c == 7 || a == 7 || b == 7) { cout << "Yes"; } else { cout << "No"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
86
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; bool ok = 1; while (n) { if (n % 10 == 7) ok &= 0; n /= 10; } if (ok) cout << "Yes\n"; else cout << "No\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; bool ok = 1; while (n) { if (n % 10 == 7) ok &= 0; n /= 10; } if (ok) cout << "No\n"; else cout << "Yes\n"; }
[["-", 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
65
#include <iostream> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int, int>; #include <algorithm> #include <map> #include <math.h> #include <queue> int main() { int s; cin >> s; int a[3]; rep(i, 3) { s %= 10; a[i] = s; s ...
#include <iostream> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using P = pair<int, int>; #include <algorithm> #include <map> #include <math.h> #include <queue> int main() { int s; cin >> s; int a[3]; rep(i, 3) { int p = s % 10; a[i] = p;...
[["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 9, 0, 43, 49, 50, 49, 22], ["+", 8, 9, 0, 9, 0, 43, 49, 50, 0, 32], ["-", 8, 9, 0, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 9, 0, 43, 49, 50, 51, 16, 17, 109], ["-", 8, 9, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 12, 22]]
1
122
#include <iostream> #include <string> using namespace std; int main() { int i, N, m; string S, T, U; // cin>>S>>T; cin >> N; // cin>>U; m = N; // cout<<S<<endl; for (i = 0; i < 3; i++) { m = m % 10; if (7 == m) { cout << "Yes" << endl; return 0; } m = m / 10; } cout...
#include <iostream> #include <string> using namespace std; int main() { int i, N, m, M; string S, T, U; // cin>>S>>T; cin >> N; // cin>>U; m = N; // cout<<S<<endl; for (i = 0; i < 3; i++) { M = m % 10; // cout<<m<<endl; if (7 == M) { cout << "Yes" << endl; return 0; } ...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
96
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string n; int flag = 0; cin >> n; for (int i = 0; i < n.length(); i++) { if (n[i] == '7') flag = 1; } if (flag == 1) cout << "YES\n"; else cout << "NO\n"; }
#include <bits/stdc++.h> #include <string> using namespace std; int main() { string n; int flag = 0; cin >> n; for (int i = 0; i < n.length(); i++) { if (n[i] == '7') flag = 1; } if (flag == 1) cout << "Yes\n"; else cout << "No\n"; }
[["-", 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
82
#include <bits/stdc++.h> using namespace std; #define ll long long #define int ll #define pii pair<int, int> #define fi first #define se second #define mp(x, y) make_pair(x, y) #define pb(x) push_back(x) #define M 998244353 int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t = 1; while (t-...
#include <bits/stdc++.h> using namespace std; #define ll long long #define int ll #define pii pair<int, int> #define fi first #define se second #define mp(x, y) make_pair(x, y) #define pb(x) push_back(x) #define M 998244353 int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t = 1; while (t-...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 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
128
n=input() ans=0 for i in range(0,len(n)): if n[i]==7: ans=1 if ans==1: print("Yes") else: print("No")
n=str(input()) ans=0 for i in range(0,len(n)): if n[i]=='7': ans=1 if ans==1: 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, 25], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
51
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define IO \ std::ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define IO \ std::ios_base::sync_with_stdio(false); ...
[["-", 0, 41, 64, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 41, 64, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 41, 75, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 41, 75, 2, 3, 4, 0, 5, 0, 6]]
1
135
#include <bits/stdc++.h> #define int long long int #define ii pair<int, int> #define fi first #define se second #define mp make_pair #define pb push_back using namespace std; #define MOD 998244353 #define output(x) \ for (auto a : x) ...
#include <bits/stdc++.h> #define int long long int #define ii pair<int, int> #define fi first #define se second #define mp make_pair #define pb push_back using namespace std; #define MOD 998244353 #define output(x) \ for (auto a : x) ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 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
228
#include <bits/stdc++.h> using namespace std; int n; int main() { scanf("%d", &n); int i = 1, p = 1; while (i <= 5) { int tmp = n % (p * 10); tmp /= p; if (tmp == 7) { printf("Yes\n"); return 0; } ++i; } printf("No\n"); return 0; }
//#include<bits/stdc++.h> // using namespace std; // int main() //{ // return 0; //} /* #include<bits/stdc++.h> using namespace std; int kk; long long ans=0; int main() { scanf("%d",&kk); int i=1,j=1,k=1; while(i<=kk) { j=1; while(j<=kk) { ...
[["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
90
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ii; typedef vector<ii> vii; typedef set<int> si; typedef map<string, int> msi; #define REP(i, a, b) for (int i = int(a); i <= int(b); i++) #define DEP(i, a, b) for (int i = int(a); i >= int(b); i--) #defin...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ii; typedef vector<ii> vii; typedef set<int> si; typedef map<string, int> msi; #define REP(i, a, b) for (int i = int(a); i <= int(b); i++) #define DEP(i, a, b) for (int i = int(a); i >= int(b); i--) #defin...
[["-", 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
202
#include <sstream> //#include <fstream> //#include <deque> //#include <queue> //#include <stack> //#include <set> //#include <list> //#include <map> //#include <unordered_map> //#include <functional> //#include <utility> //#include <bitset> //#include <cstdlib> //#include <ctime> //#include <cstdio> #include <iostream...
#include <sstream> //#include <fstream> //#include <deque> //#include <queue> //#include <stack> //#include <set> //#include <list> //#include <map> //#include <unordered_map> //#include <functional> //#include <utility> //#include <bitset> //#include <cstdlib> //#include <ctime> //#include <cstdio> #include <iostream...
[["-", 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
122
#include <iostream> #include <string> using namespace std; int main() { int N; cin >> N; int n = 0; for (int i = 0; i < 3; i++) { n = N % 10; if (n == 7) { cout << "Yes" << endl; return 0; } n /= 10; } cout << "No" << endl; return 0; }
#include <iostream> #include <string> using namespace std; int main() { int N; cin >> N; int check = 0; for (int i = 0; i < 4; i++) { check = N % 10; if (check == 7) { cout << "Yes" << endl; return 0; } N /= 10; } cout << "No" << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 3...
1
82
#include <bits/stdc++.h> using namespace std; #include <cstdlib> int main() { string N; cin >> N; string ans = "No"; for (int i = 0; i < N.size(); i++) { if (N.at(i) == '7') ans = "Yes"; } cout << N << endl; }
#include <bits/stdc++.h> using namespace std; #include <cstdlib> int main() { string N; cin >> N; string ans = "No"; for (int i = 0; i < N.size(); i++) { if (N.at(i) == '7') ans = "Yes"; } cout << ans << endl; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
73
#include <stdio.h> int main() { int N; scanf("%d", &N); int flag = 0; if (N % 10 == 7) { flag = 1; } else { N = N / 10; if (N % 10 == 7) { flag = 1; } else { N = N / 10; if (N % 10 == 7) { flag = 1; } } } if (flag == 0) { printf("Yes"); } else { ...
#include <stdio.h> int main() { int N; scanf("%d", &N); int flag = 0; if (N % 10 == 7) { flag = 1; } else { N = N / 10; if (N % 10 == 7) { flag = 1; } else { N = N / 10; if (N % 10 == 7) { flag = 1; } } } if (flag == 1) { printf("Yes"); } else { ...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]]
0
114
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string.h> #include <string> #include <tuple> #include <vector> typedef long long ll; typedef unsigned long long ull; #define mk make...
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string.h> #include <string> #include <tuple> #include <vector> typedef long long ll; typedef unsigned long long ull; #define mk make...
[["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
102
n=input() flg = 0 for s in n: if s == '7': print(s) flg = 1 if flg == 1: print('Yes') else: print('No')
n=input() flg = 0 for s in n: if s == '7': flg = 1 if flg == 1: print('Yes') else: print('No')
[["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
46
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while (n) { int r = n % 10; if (r == 7) { cout << "YES" << '\n'; return 0; } n = n / 10; } cout << "NO" << '\n'; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while (n) { int r = n % 10; if (r == 7) { cout << "Yes" << '\n'; return 0; } n = n / 10; } cout << "No" << '\n'; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
69
a=list(input().split()) count=0 for i in range(len(a)): if a[i]=='7': count+=1 if count>0: print('Yes') else: print('No')
a=list(input()) count=0 for i in range(len(a)): if a[i]=='7': count+=1 if count>0: print('Yes') else: print('No')
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
58
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define ll long long #define ull unsigned long long #define FI(i, a, n) for (int i = a; i <= n; i++) #define RFI(i, ...
#include <bits/stdc++.h> #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define ll long long #define ull unsigned long long #define FI(i, a, n) for (int i = a; i <= n; i++) #define RFI(i, ...
[["-", 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
158
#include <iostream> using namespace std; int main() { int N; int flag = 0; cin >> N; while (N) { int m = N % 10; N = N / 10; if (m == 7) flag = 1; break; } if (flag) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <iostream> using namespace std; int main() { int N; int flag = 0; cin >> N; while (N) { int m = N % 10; N = N / 10; if (m == 7) { flag = 1; break; } } if (flag) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]]
1
79
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a; int i = 0, flag = 0; while (i != 2) { b = a % 10; if (b == 7) { flag = 1; break; } a /= 10; i++; } if (flag == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <iostream> using namespace std; int main(void) { int a, b; cin >> a; int i = 0, flag = 0; while (i != 3) { b = a % 10; if (b == 7) { flag = 1; break; } a /= 10; i++; } if (flag == 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13]]
1
93
n=int(input()) flag=0 while (n!=0): if((n%10)==7): print('Yes') flag+=1 break else: n=n/10 if(flag==0): print('No')
n=int(input()) flag=0 while (n!=0): if((n%10)==7): print('Yes') flag+=1 break else: n=n//10 if(flag==0): print('No')
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]]
5
59
N = input() match_flg = 0 for nn in N: if( nn== "7" ): print( Yes ) match_flg = 1 break if( match_flg == 0 ): print("No")
N = input() match_flg = 0 for nn in N: if( nn== "7" ): print( "Yes" ) match_flg = 1 break if( match_flg == 0 ): print("No")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
43
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; bool ans = false; while (n) { if (n % 10 == 7) { ans = true; break; } n /= 10; } if (ans) cout << "YES\n"; else cout << "NO\n"; ret...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; bool ans = false; while (n) { if (n % 10 == 7) { ans = true; break; } n /= 10; } if (ans) cout << "Yes\n"; else cout << "No\n"; ret...
[["-", 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
91
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s = ""; cin >> s; int flag = 1; for (int i = 0; i < s.length(); ++i) { if (s[i] == '7') { flag = 1; break; } } if (flag == 1) cout << "Yes\n"; else cout << "N...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s = ""; cin >> s; int flag = 0; for (int i = 0; i < s.length(); ++i) { if (s[i] == '7') { flag = 1; break; } } if (flag == 1) cout << "Yes\n"; else cout << "N...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
104
n = int(input()) for i in range(0,3): if( n % 10 == 7): print("YES") break n = int(n / 10) else: print("NO")
n = int(input()) for i in range(0,3): if( n % 10 == 7): print("Yes") break n = int(n / 10) else: print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
50
N=input() counts=0 for i in range(0,len(N)): #print(N[i]) if N[i]=='7': counts+=1 #print(counts) else: counts=+0 #print(counts) if counts>0: print('Yes') else: print('No')
N=input() counts=0 for i in range(0,len(N)): #print(N[i]) if N[i]=='7': counts+=1 #print(counts) else: counts+=0 #print(counts) if counts>0: print('Yes') else: print('No')
[["-", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 664, 17, 72], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107]]
5
62
#include <iostream> using namespace std; int main() { string s; cin >> s; bool f = 0; for (unsigned int i = 0; i < s.length(); i++) { if (s[i] == '7') { f = 1; } } cout << ((f) ? "YES\n" : "NO\n"); return 0; }
#include <iostream> using namespace std; int main() { string s; cin >> s; bool f = 0; for (unsigned int i = 0; i < s.length(); i++) { if (s[i] == '7') { f = 1; } } cout << ((f) ? "Yes\n" : "No\n"); return 0; }
[["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
83
#include <cmath> #include <iostream> #include <map> #include <vector> using namespace std; int N; int main() { int A, B, C; int ret = 0; cin >> N; if (N % 7 == 0 || N / 10 % 7 == 0 || N / 100 % 7 == 0) printf("Yes\n"); else printf("No\n"); return 0; }
#include <cmath> #include <iostream> #include <map> #include <vector> using namespace std; int N; int main() { int A, B, C; int ret = 0; cin >> N; if (N % 10 == 7 || N / 10 % 10 == 7 || N / 100 % 10 == 7) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["-", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13], ["-", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["-", 15, 339, 51, 16, 31, 16, 12, ...
1
81
#include <iostream> using namespace std; int main() { int n, x; string ans = "NO"; cin >> n; while (n > 0) { int x = n % 10; if (x == 7) { ans = "YES"; } n /= 10; } cout << ans; }
#include <iostream> using namespace std; int main() { int n, x; string ans = "No"; cin >> n; while (n > 0) { int x = n % 10; if (x == 7) { ans = "Yes"; } n /= 10; } cout << ans; }
[["-", 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
65
N = 15 N = str(N) F = int(N) #one =int(N[-1]) #two =int(N[-2]) #thr =int(N[-3]) #N = int (N) if F >= 100 and (int(N[-1]) == 7 or int(N[-2])==7 or int(N[-3]) == 7): print("Yes") elif F >= 10 and (int(N[-1]) == 7 or int(N[-2])==7): print("Yes") elif F >= 0 and (int(N[-1]) == 7): print("Yes") else: prin...
N = input() N = str(N) F = int(N) #one =int(N[-1]) #two =int(N[-2]) #thr =int(N[-3]) #N = int (N) if F >= 100 and (int(N[-1]) == 7 or int(N[-2])==7 or int(N[-3]) == 7): print("Yes") elif F >= 10 and (int(N[-1]) == 7 or int(N[-2])==7): print("Yes") elif F >= 0 and (int(N[-1]) == 7): print("Yes") else: ...
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 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
132
#include <iostream> using namespace std; int main() { int n; bool ans = 0; cin >> n; for (int i = 0; i < 3; i++) { if (n % 10 == 7) { ans = 1; } n -= n % 10; } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n; bool ans = 0; cin >> n; for (int i = 0; i < 3; i++) { if (n % 10 == 7) { ans = 1; } n -= n % 10; n /= 10; } if (ans) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
88
#include <iostream> using namespace std; int main() { int n; cin >> n; int flag = 0; while (n > 0) { if (n % 10 == 7) flag = 1; n /= 10; } if (flag) cout << "YES\n"; else cout << "NO\n"; }
#include <iostream> using namespace std; int main() { int n; cin >> n; int flag = 0; while (n > 0) { if (n % 10 == 7) flag = 1; n /= 10; } if (flag) cout << "Yes\n"; else cout << "No\n"; }
[["-", 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
67
#include <bits/stdc++.h> #include <stdlib.h> using namespace std; int main() { int n; cin >> n; while (n > 0) { if ((n % 10) == 7) { cout << "YES"; return 0; } n = n / 10; } cout << "NO"; return 0; }
#include <bits/stdc++.h> #include <stdlib.h> using namespace std; int main() { int n; cin >> n; while (n > 0) { if ((n % 10) == 7) { cout << "Yes"; return 0; } n = n / 10; } 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
65
// 失敗するからこそ // そこから立ち向かって行く強さがあってそんな強さが本当の強さだと私は思うから // ぜったいあきらめない #if defined(DAIJOBU) #include "/home/ichigo/debug.hpp" #include "/home/ichigo/includes.hpp" #define deb(x...) \ cerr << "[" << #x << "] = ["; \...
// 失敗するからこそ // そこから立ち向かって行く強さがあってそんな強さが本当の強さだと私は思うから // ぜったいあきらめない #if defined(DAIJOBU) #include "/home/ichigo/debug.hpp" #include "/home/ichigo/includes.hpp" #define deb(x...) \ cerr << "[" << #x << "] = ["; \...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
308
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; bool yes = false; while (n) { if (n % 10 == 7) { yes = true; break; } n /= 10; } cout << (yes ? "YES" : "NO") << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; bool yes = false; while (n) { if (n % 10 == 7) { yes = true; break; } n /= 10; } cout << (yes ? "Yes" : "No") << endl; return 0; }
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
69
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; bool flag; flag = false; for (int i = 0; i < 3; i++) { int cf; cf = N % 10; if (cf == 7) { flag = true; break; } else { N = N / 10; } } if (flag = true) { cout << "Yes" << endl; } els...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; bool flag; flag = false; for (int i = 0; i < 3; i++) { int cf; cf = N % 10; if (cf == 7) { flag = true; break; } else { N = N / 10; } } if (flag == true) { cout << "Yes" << endl; } el...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
101
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iostream> #include <map> ...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <deque> // deque #include <iostream> #include <map> ...
[["-", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13]]
1
122
n = str(input()) for i in range(len(n)): if n[i]=="7": print("Yes") if i == len(n)-1: print("No")
n = str(input()) for i in range(len(n)): if n[i]=="7": print("Yes") break if i == len(n)-1: print("No")
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
51
#include <iostream> using namespace std; void test_case() { int n; cin >> n; while (n) { int digit = n % 10; if (digit == 7) { cout << "YES"; return; } n /= 10; } cout << "NO"; } int main() { cin.tie(0); ios_base::sync_with_stdio(false); test_case(); }
#include <iostream> using namespace std; void test_case() { int n; cin >> n; while (n) { int digit = n % 10; if (digit == 7) { cout << "Yes"; return; } n /= 10; } cout << "No"; } int main() { cin.tie(0); ios_base::sync_with_stdio(false); test_case(); }
[["-", 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
82
N = input() isSeven = False for i in N: if int(i)%7 == 0: isSeven = True if isSeven: print('Yes') else: print('No')
N = input() isSeven = False for i in N: if int(i) == 7: isSeven = True if isSeven: print('Yes') else: print('No')
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]]
5
43
a = input() for i in range(len(a)): if int(a[i]) == 7: flag = 1 break else: flag = 0 if flag == 1: print('yes') else: print('no')
a = input() for i in range(len(a)): if int(a[i]) == 7: flag = 1 break else: flag = 0 if flag == 1: 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
55
n = input() k = 0 for i in range(len(n)): if int(n[i]) == 7: print("Yes") k = 1 if k != 1: print("No")
n = input() k = 0 for i in range(len(n)): if int(n[i]) == 7: print("Yes") k = 1 break if k != 1: print("No")
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
50
import java.io.*; import java.lang.*; import java.util.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements(...
import java.io.*; import java.lang.*; import java.util.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements(...
[["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 8, 196, 0, 52, 8, 196, 0, 37, 0, 38]]
3
277
n = gets puts "#{(n.include? '7') ? 'YES' : 'NO'}"
n = gets puts "#{(n.include? '7') ? 'Yes' : 'No'}"
[["-", 0, 557, 0, 284, 0, 754, 64, 557, 0, 6], ["+", 0, 557, 0, 284, 0, 754, 64, 557, 0, 6], ["-", 0, 557, 0, 284, 0, 754, 75, 557, 0, 6], ["+", 0, 557, 0, 284, 0, 754, 75, 557, 0, 6]]
4
24
n = input() print("Yes" if s.count("7") >= 1 else "No")
n = input() print("Yes" if n.count("7") >= 1 else "No")
[["-", 0, 41, 0, 666, 0, 652, 63, 319, 500, 22], ["+", 0, 41, 0, 666, 0, 652, 63, 319, 500, 22]]
5
26
#include <bits/stdc++.h> //#include <boost/array.hpp> //#include <boost/range/numeric.hpp> //#include <boost/range/algorithm.hpp> //#include <boost/multiprecision/cpp_int.hpp> #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace std; // using name...
#include <bits/stdc++.h> //#include <boost/array.hpp> //#include <boost/range/numeric.hpp> //#include <boost/range/algorithm.hpp> //#include <boost/multiprecision/cpp_int.hpp> #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace std; // using name...
[["+", 31, 23, 0, 2, 3, 4, 0, 103, 0, 104], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 60], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 79]]
1
322
#include <bits/stdc++.h> using namespace std; int main() { int n, p; cin >> n; while (n != 0) { p = n % 10; if (p == 7) break; else n = n / 10; } if (p == 7) cout << "YES"; else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { int n, p; cin >> n; while (n != 0) { p = n % 10; if (p == 7) break; else n = n / 10; } if (p == 7) 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
/* Arthor : Ender_zzm E-mail zzm_ender_wiggin@outlook.com Blog oi.ender-zzm.pro */ #include <bits/stdc++.h> using namespace std; template <class T> inline void read(T &a) { register T x = 0, flag = 1; register char ch; while (!isdigit(ch = getchar())) if (ch == '-') flag = -1; while (x = x * 10 + (ch...
/* Arthor : Ender_zzm E-mail zzm_ender_wiggin@outlook.com Blog oi.ender-zzm.pro */ #include <bits/stdc++.h> using namespace std; template <class T> inline void read(T &a) { register T x = 0, flag = 1; register char ch; while (!isdigit(ch = getchar())) if (ch == '-') flag = -1; while (x = x * 10 + (ch...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
308
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; for (char c : s) { if (c == '7') { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; for (char c : s) { if (c == '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
64
n = input() flag = "No" for i in n : print(i) if int(i)==7: flag="Yes" break else: flag="No" print (flag)
n = input() flag = "No" for i in n : #print(int(i)) if int(i)==7: flag="Yes" break else: flag="No" print (flag)
[["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
44
A = str(input()) i_count = 0 for i in A: if i == int(7): i_count = i_count+1 if i_count == 0: print("No") else: print("Yes")
A = str(input()) i_count = 0 for i in A: if i == str(7): i_count = i_count+1 if i_count == 0: print("No") else: print("Yes")
[["-", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22]]
5
48
n = input() for i in range(len(n)): if n[i] == '7': print('Yes') exit print('No')
n = input() for i in range(len(n)): if n[i] == '7': print('Yes') exit() print('No')
[["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
39
n = str(input()) if n.count(7) >= 1: print("Yes") else: print("No")
n = str(input()) if n.count("7") >= 1: print("Yes") else: print("No")
[["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 655]]
5
32
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; bool ans = false; while (n) { if (n % 10 == 7) { ans = true; break; } n /= 10; } if (ans) cout << "YES\n"; else cout << "NO\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; bool ans = false; while (n) { if (n % 10 == 7) { ans = true; break; } n /= 10; } if (ans) 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, 44], ["+", 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, 44], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
72
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; char c[100]; int main() { scanf("%s", c); int len = strlen(c); int flag = 0; for (int i = 0; i < len; i++) { if (c[i] == '7') { flag = 1; break; } } if (flag) printf("YES\n"); else printf("NO\n"); ...
#include <algorithm> #include <cstdio> #include <cstring> using namespace std; char c[100]; int main() { scanf("%s", c); int len = strlen(c); int flag = 0; for (int i = 0; i < len; i++) { if (c[i] == '7') { flag = 1; break; } } if (flag) printf("Yes\n"); else printf("No\n"); ...
[["-", 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]]
1
103
S = input() a = 0 for i in range(len(S)): if S[i] == "7": a = 1 else: a = 0 if a == 1: print("Yes") else: print("No")
S = input() a = 0 for i in range(len(S)): if S[i] == "7": a = 1 break else: a = 0 if a == 1: print("Yes") else: print("No")
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
56
#include <iostream> using namespace std; int main() { int n; cin >> n; int f = 0; while (n) { if (n % 10 == 7) { f = 1; break; } n /= 10; } if (f) cout << "YES"; else cout << "NO"; }
#include <iostream> using namespace std; int main() { int n; cin >> n; int f = 0; while (n) { if (n % 10 == 7) { f = 1; break; } n /= 10; } if (f) 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
67
a = input() b=list(a) res= 0 for i in b: if i == '7': print("Yes") res = res+1 if res == 0: print("No")
a = input() b=list(a) res= 0 for i in b: if i == '7': print("Yes") res = res+1 break if res == 0: print("No")
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
48
n=int(input()) judge = False string = str(n) for i in range(len(string)): if(string[i] == "7"): judge = True if(judge): print("YES") else: print("NO")
n=int(input()) judge = False string = str(n) for i in range(len(string)): if(string[i] == "7"): judge = True if(judge): print('Yes') else: print('No')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]]
5
62
import sys input = sys.stdin.readline A = 123 #int(input()) B = A // 10 C = B // 10 if A % 10 == 7: print ("Yes") elif B % 10 == 7: print ("Yes") elif C % 10 == 7: print ("Yes") else: print ("No")
import sys input = sys.stdin.readline A = int(input()) B = A // 10 C = B // 10 if A % 10 == 7: print ("Yes") elif B % 10 == 7: print ("Yes") elif C % 10 == 7: print ("Yes") else: print ("No")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
70
x = int(input()) j = False for i in range(len(x)): if x[i] == 7: j = True if j: print('Yes') else: print('No')
x = input() j = False for i in range(len(x)): if x[i] == '7': j = True if j: 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, 25], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
50
#include <stdio.h> int main() { int num1; scanf("%d", &num1); if (num1 % 10 == 7) printf("yes"); else { int num2 = num1 / 10; if (num2 % 10 == 7) printf("yes"); else { int num3 = num2 / 10; if (num3 % 10 == 7) printf("yes"); else printf("no"); } } }
#include <stdio.h> int main() { int num1; scanf("%d", &num1); if (num1 % 10 == 7) printf("Yes"); else { int num2 = num1 / 10; if (num2 % 10 == 7) printf("Yes"); else { int num3 = num2 / 10; if (num3 % 10 == 7) printf("Yes"); else printf("No"); } } }
[["-", 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
94