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
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String num = sc.next(); if (num.contains("7")) System.out.println("yes"); else System.out.println("no"); } }
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String num = sc.next(); if (num.contains("7")) System.out.println("Yes"); else System.out.println("No"); } }
[["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
80
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while (n > 0) { if (n % 10 == 0) { cout << "Yes\n"; return 0; } n /= 10; } cout << "No\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while (n > 0) { if (n % 10 == 7) { cout << "Yes\n"; return 0; } n /= 10; } cout << "No\n"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
61
#include <stdio.h> int main() { int number; scanf("%d", &number); int count = 0; while (number != 0) { int temp = number % 10; number = number / 10; if (temp == 7) { printf("Yes\n"); count = 1; } } if (count == 0) { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int number; scanf("%d", &number); int count = 0; while (number != 0) { int temp = number % 10; number = number / 10; if (temp == 7) { printf("Yes\n"); count = 1; break; } } if (count == 0) { printf("No\n"); } return 0; }
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
86
s = str(n) flag = 0 # 1文字ずつ数値化し配列にする。 array = list(map(int, s)) # 合計値を返す for i in array: if i == 7: flag = 1 if flag ==1: print("Yes") else: print("No")
s = input() flag = 0 # 1文字ずつ数値化し配列にする。 array = list(map(int, s)) # 合計値を返す for i in array: if i == 7: flag = 1 if flag ==1: print("Yes") else: print("No")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
54
N=input().split() if '7' in N: print('Yes') else: print('No')
N=list(input()) if '7' in N: 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, 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
30
N = input() thereIs7 = False for i in N: if i == 7: thereIs7 = True break if thereIs7: print('Yes') else: print("No")
N = input() thereIs7 = False for i in N: if i == '7': thereIs7 = True break if thereIs7: print('Yes') else: print("No")
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
39
import math n = (int)(input()) ret = False while n > 0: if n % 10 == 7: ret = True break n = math.floor(n / 10) print("{}".format(ret))
import math n = (int)(input()) ret = "No" while n > 0: if n % 10 == 7: ret = "Yes" break n = math.floor(n / 10) print("{}".format(ret))
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 147], ["+", 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, 57, 64, 196, 0, 1, 0, 662, 12, 146], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 654], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6],...
5
52
num = input() for i in range(len(num)): if(num[i] == "7"): print("Yes") break elif(len(num) == i): print("No") break
num = input() for i in range(len(num)): if(num[i] == "7"): print("Yes") break elif(len(num)-1 == i): print("No") break
[["+", 75, 665, 15, 23, 0, 666, 0, 657, 17, 33], ["+", 75, 665, 15, 23, 0, 666, 0, 657, 12, 612]]
5
52
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; if (N.find('7') != string::npos) { cout << "yes" << endl; } else { cout << "no" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string N; cin >> N; if (N.find('7') != string::npos) { 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
55
# A - Lucky 7 N = input() if '7' in a: print('Yes') else: print('No')
# A - Lucky 7 N = input() if '7' in N: print('Yes') else: print('No')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
27
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { int n; cin >> n; int num = n; bool nana = false; rep(i, 3) { if (num % 10 == 7) { nana = true; break; } else { num %= 10; } } if (nana) { ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) int main() { int n; cin >> n; int num = n; bool nana = false; rep(i, 5) { if (num % 10 == 7) { nana = true; break; } else { num /= 10; } } if (nana) { ...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 17, 132], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 90]]
1
99
#include <stdio.h> int main() { int n, a = 7, i, f = 0; scanf("%d", &n); while (n) { i = n % 10; if (i == a) { f = 0; break; } n /= 10; } if (f == 0) { printf("Yes"); } else printf("No"); return 0; }
#include <stdio.h> int main() { int n, a = 7, i, f = 0; scanf("%d", &n); while (n) { i = n % 10; if (i == a) { f = 1; break; } n /= 10; } if (f == 1) { printf("Yes"); } else printf("No"); return 0; }
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]]
0
87
using namespace std; #include <bits/stdc++.h> #define pb push_back #define mk make_pair #define vect vector<ll> #define maap map<ll, ll> #define MOD 998244353 #define mit map::iterator #define pii pair<ll, ll> #define rep(i, a, b) for (ll i = a; i < b; i++) #define fast ...
using namespace std; #include <bits/stdc++.h> #define pb push_back #define mk make_pair #define vect vector<ll> #define maap map<ll, ll> #define MOD 998244353 #define mit map::iterator #define pii pair<ll, ll> #define rep(i, a, b) for (ll i = a; i < b; i++) #define fast ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
621
N=input() x=N.count(7) print("Yes" if x>0 else "No")
N=input() x=N.count("7") print("Yes" if x>0 else "No")
[["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655]]
5
27
#include <iostream> using namespace std; int main() { string n; cin >> n; for (int i = 0; i < n.size(); i++) { if (n[i] == 7) { cout << "Yes" << endl; break; } if (i == n.size()) { cout << "No" << endl; } } return 0; }
#include <iostream> using namespace std; int main() { string n; cin >> n; for (int i = 0; i < n.size(); i++) { if (n[i] == '7') { cout << "Yes" << endl; break; } if (i + 1 == n.size()) { cout << "No" << endl; } } return 0; }
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
83
import math from math import gcd,pi,sqrt INF = float("inf") import sys sys.setrecursionlimit(10**6) import itertools from collections import Counter,deque def i_input(): return int(input()) def i_map(): return map(int, input().split()) def i_list(): return list(i_map()) def i_row(N): return [i_input() for _ in range(N...
import math from math import gcd,pi,sqrt INF = float("inf") import sys sys.setrecursionlimit(10**6) import itertools from collections import Counter,deque def i_input(): return int(input()) def i_map(): return map(int, input().split()) def i_list(): return list(i_map()) def i_row(N): return [i_input() for _ in range(N...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
255
n = input() for i in n: if i == 7: print("Yes") quit() print("No")
n = input() for i in n: if i == "7": print("Yes") quit() print("No")
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
30
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; if (n.find("7") == string::npos) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; if (n.find("7") != string::npos) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]]
1
54
int = int(input()) i=1 while i<=3: dev=int % 10 if dev == 7: print("Yes") i=5 int = int // 10 i += 1 if i==3: print("No")
int = int(input()) i=1 while i<=3: dev=int % 10 if dev == 7: print("Yes") i=5 int = int // 10 i += 1 if i==4: print("No")
[["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612]]
5
54
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { ll n, i, j, k, c = 1, x = 1, t; string s; cin >> s; for (i = 0; i < s.size(); i++) if (s[i] == '7') { cout << "Yes"; return 0; } else cout << "No"; }
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { ll n, i, j, k, c = 1, x = 1, t; string s; cin >> s; for (i = 0; i < s.size(); i++) if (s[i] == '7') { cout << "Yes"; return 0; } cout << "No"; }
[["-", 8, 9, 0, 7, 8, 57, 75, 76, 0, 95]]
1
89
n = input() print('Yes') if n in '7' else print('No')
n = input() print('Yes') if '7' in n else print('No')
[["-", 0, 656, 0, 1, 0, 41, 0, 666, 0, 22], ["-", 0, 656, 0, 1, 0, 41, 0, 666, 667, 267], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 667, 267], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 0, 22]]
5
24
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; typedef pair<int, int> P; int main(void) { int N; cin >> N; while (N / 10) { int x = N % 10; if (x == 7) { cout << "Yes" << endl; return 0; } N /= 10; } cout << "No"...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; typedef pair<int, int> P; int main(void) { int N; cin >> N; while (N) { int x = N % 10; if (x == 7) { cout << "Yes" << endl; return 0; } N /= 10; } cout << "No" << e...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 85], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13]]
1
89
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; if (str.find("7") >= 0) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; return 0; }
#include <iostream> #include <string> int main() { std::string str; std::cin >> str; if (str.find("7") != std::string::npos) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 343, 345, 348], ["+", 0, 57, 15, 339, 51, 16, 12, 343, 0, 349], ["+", 15, 339, 51, 16, 12, 343, 141, 343, 345, 348], ["+", 15, 339, 51, 16, 12, 343, 1...
1
62
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b, c, d = 0, e = 0; cin >> a; for (a; a > 0;) { if (a % 10 == 7) { cout << "Yes"; return 0; } a /= 10; } return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b, c, d = 0, e = 0; cin >> a; for (a; a > 0;) { if (a % 10 == 7) { cout << "Yes"; return 0; } a /= 10; } cout << "No"; return 0; }
[["+", 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
71
#include <iostream> using namespace std; int main() { int n, a; cin >> n; for (int i = 0; i < 3; i++) { a = n % 10; if (a == 7) { cout << "Yes"; return 0; } a /= 10; } cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int n, a; cin >> n; for (int i = 0; i < 3; i++) { a = n % 10; if (a == 7) { cout << "Yes"; return 0; } n /= 10; } cout << "No"; return 0; }
[["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22]]
1
73
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; if (n.find("7") > 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; if (n.find("7") != -1) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
53
s=gets.to_i ans1=s%100 ans2=(s/10)%10 ans3=(s/100)%10 if ans1==7 || ans2==7 || ans3==7 puts "Yes" else puts "No" end
s=gets.to_i ans1=s%10 ans2=(s/10)%10 ans3=(s/100)%10 if ans1==7 || ans2==7 || ans3==7 puts "Yes" else puts "No" end
[["-", 36, 36, 0, 493, 0, 662, 12, 738, 12, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 12, 612]]
4
50
// God put a smile upon your face <3 #include <bits/stdc++.h> #define slld(longvalue) scanf("%lld", &longvalue) #define ll long long #define ull unsigned long long #define pll pair<long long, long long> #define fastio \ ios_base::sync_with_stdio(fals...
// God put a smile upon your face <3 #include <bits/stdc++.h> #define slld(longvalue) scanf("%lld", &longvalue) #define ll long long #define ull unsigned long long #define pll pair<long long, long long> #define fastio \ ios_base::sync_with_stdio(fals...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
190
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < n; i++) #define Rep(i, n) for (long long i = 1; i < n; i++) #define ll long long #include <cmath> #include <iomanip> #include <iostream> #include <math.h> #include <numeric> #include <queue> #include <set> #include <vector> using namespace std; #defi...
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < n; i++) #define Rep(i, n) for (long long i = 1; i < n; i++) #define ll long long #include <cmath> #include <iomanip> #include <iostream> #include <math.h> #include <numeric> #include <queue> #include <set> #include <vector> using namespace std; #defi...
[["-", 0, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 9, 0, 57, 64, 9, 0, 46]]
1
100
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean truth = false; if ((N % 1000 >= 700 && N % 1000 <= 799) || (N % 100 >= 70 && N % 100 <= 79) || (N % 10 == 7)) { truth = true; } if ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean truth = false; if ((N % 1000 >= 700 && N % 1000 <= 799) || (N % 100 >= 70 && N % 100 <= 79) || (N % 10 == 7)) { truth = true; } if ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
124
#include <stdio.h> int main() { int N; scanf("%d", &N); if (N % 10 == 7 || (N / 10) % 10 == 7 || (N / 100) % 10) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
#include <stdio.h> int main() { int N; scanf("%d", &N); if (N % 10 == 7 || (N / 10) % 10 == 7 || (N / 100) % 10 == 7) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]]
0
71
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; int x = 0; for (int i = 0; i < n.size(); i++) { if (n.at(i) == 7) { x += 1; } } if (x > 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string n; cin >> n; int x = 0; for (int i = 0; i < n.size(); i++) { if (n.at(i) == '7') { x += 1; } } if (x > 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
88
#include <stdio.h> int main() { int N; scanf("%d", &N); if (N % 10 == 7 || N / 100 % 10 == 7 || N / 10 % 10 == 7) { printf("yes"); } else { printf("no"); } return 0; }
#include <stdio.h> int main() { int N; scanf("%d", &N); if (N % 10 == 7 || N / 100 % 10 == 7 || N / 10 % 10 == 7) { printf("Yes"); } else { printf("No"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
67
n = int( input() ) while n > 0: if n%10 == 7: print("YES") exit() else: n = int( n / 10 ) print("NO")
n = int( input() ) while n > 0: if n%10 == 7: print("Yes") exit() else: n = int( n / 10 ) print("No")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
45
n = str(input()) ans = 'No' for i in range(len(n)): if n[i] == '7': ans = 'Yes' print('Yes')
n = str(input()) ans = 'No' for i in range(len(n)): if n[i] == '7': ans = 'Yes' print(ans)
[["-", 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, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
45
a=list(int(input())) if 7 in a: print("Yes") else: print("No")
a=list(input()) if "7" in a: print("Yes") else: print("No")
[["-", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
30
N = input() l = len(N) for i in range(l): if N[i] ==7: print("Yes") exit() print("No")
N = input() l = len(N) for i in range(l): if N[i] =="7": print("Yes") exit() print("No")
[["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
42
import re str = input() if re.match(str, "7"): print("Yes") else: print("No")
import re str = input() if re.search("7", str): print("Yes") else: print("No")
[["-", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 57, 15, 652, 63, 319, 319, 22], ["-", 0, 656, 0, 57, 15, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 57, 15, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 57, 15, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 57, 15, 652, 3, 4, 0, 22]]
5
33
#include <stdio.h> int main() { int N, a, b, c, y, z; scanf("%d", &N); a = N % 10; y = N / 10; b = y % 10; z = y / 10; c = z % 10; if (a == 7) { printf("yes\n"); } else if (b == 7) { printf("Yes\n"); } else if (c == 7) { printf("yes\n"); } else printf("No\n"); return 0; }
#include <stdio.h> int main() { int N, a, b, c, y, z; scanf("%d", &N); a = N % 10; y = N / 10; b = y % 10; z = y / 10; c = z % 10; if (a == 7) { printf("Yes\n"); } else if (b == 7) { printf("Yes\n"); } else if (c == 7) { printf("Yes\n"); } else 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]]
0
123
n = int(input()) print("Yes" if "7" in n else "No")
n = 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], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
24
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using ull = unsigned long long; using uint = unsigned int; using pcc = pair<char, char>; using pii = pair<int, int>; using pll = pair<ll, ll>; using pdd = pair<double, double>; using tuplis = array<ll, 3>; template <class T> usi...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using ull = unsigned long long; using uint = unsigned int; using pcc = pair<char, char>; using pii = pair<int, int>; using pll = pair<ll, ll>; using pdd = pair<double, double>; using tuplis = array<ll, 3>; template <class T> usi...
[["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 22], ["+", 12, 23, 0, 16, 12, 69, 341, 342, 0, 22], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 13]]
1
3,832
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
#include <algorithm> #include <bitset> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i)...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 14, 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, 72]]
1
462
#include <bits/stdc++.h> #define boost_io \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define int long long #define num(a) a...
#include <bits/stdc++.h> #define boost_io \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define int long long #define num(a) a...
[["-", 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
235
#include <bits/stdc++.h> using namespace std; #define int long long int #define fi first #define se second #define pb push_back #define soo(v) sort(v.rbegin(), v.rend()) #define so(v) sort(v.begin(), v.end()) #define lb(v, x) lower_bound(v.begin(), v.end(), x) #define ub(v, x) upper_bound(v.begin(), v.end(), x) //#defi...
#include <bits/stdc++.h> using namespace std; #define int long long int #define fi first #define se second #define pb push_back #define soo(v) sort(v.rbegin(), v.rend()) #define so(v) sort(v.begin(), v.end()) #define lb(v, x) lower_bound(v.begin(), v.end(), x) #define ub(v, x) upper_bound(v.begin(), v.end(), x) //#defi...
[["+", 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
316
import sys def input(): return sys.stdin.readline().rstrip() N = input() print(N) if '7' in N: print('Yes') else: print('No')
import sys def input(): return sys.stdin.readline().rstrip() N = input() if '7' in N: 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
49
N = input() print('Yes' if 7 in N else 'No')
N = input() print('Yes' if '7' in N else 'No')
[["+", 3, 4, 0, 41, 0, 666, 0, 557, 0, 654], ["+", 3, 4, 0, 41, 0, 666, 0, 557, 0, 655]]
5
19
#include <iostream> using namespace std; int main() { int N; bool seven = false; for (int i = 0; i < 3; i++) { if (N % 10 == 7) { seven = true; } N /= 10; } if (seven) cout << "Yes"; else cout << "No"; return 0; }
#include <iostream> using namespace std; int main() { int N; bool seven = false; cin >> N; for (int i = 0; i < 3; i++) { if (N % 10 == 7) { seven = true; } N /= 10; } if (seven) cout << "Yes"; else cout << "No"; return 0; }
[["+", 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
74
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <iterator> #include <math.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std; #define endl ("\n") #define pi (3.141592653589) #define mod 1000000007 #define int long long #define float double #defi...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <iterator> #include <math.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std; #define endl ("\n") #define pi (3.141592653589) #define mod 1000000007 #define int long long #define float double #defi...
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
196
N=input() for idx in range(len(N)): if N[idx] == 7: print('Yes') break else: print('No')
N=input() for idx in range(len(N)): if N[idx] == str(7): print('Yes') break else: print('No')
[["+", 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
39
a = input() if a.count('7') == 0: print('Yes') else: print('No')
a = input() if a.count('7') == 0: print('No') else: print('Yes')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
31
#include <iostream> using namespace std; int a, b; int main() { cin >> a; while (a > 0) { b = a % 10; if (b == 7) { cout << "YES"; return 0; } a /= 10; } cout << "NO"; return 0; }
#include <iostream> using namespace std; int a, b; int main() { cin >> a; while (a > 0) { b = a % 10; if (b == 7) { cout << "Yes"; return 0; } a /= 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
#include <stdio.h> int main() { int r, n, cnt = 0; scanf("%d", &n); while (n > 0) { r = n % 10; if (r == 7) { printf("Yes"); cnt++; } n = n / 10; } if (cnt == 0) { printf("No"); } return 0; }
#include <stdio.h> int main() { int r, n, cnt = 0; scanf("%d", &n); while (n > 0) { r = n % 10; if (r == 7) { printf("Yes"); cnt++; break; } n = n / 10; } if (cnt == 0) { printf("No"); } return 0; }
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
83
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t, flag = 0; cin >> t; while (t != 0) { int x = t % 10; if (x == 7) { flag = 1; break; } t /= 10; } if (flag == 1) cout << "YES"; else cout << "NO"; ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t, flag = 0; cin >> t; while (t != 0) { int x = t % 10; if (x == 7) { flag = 1; break; } t /= 10; } if (flag == 1) 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
92
#include <bits/stdc++.h> using namespace std; typedef long long LL; string long_division(string number, LL divisor) { string ret = ""; LL temp = 0; queue<LL> q; for (int i = 0; i < number.size(); i++) { temp = (temp * 10) + (number[i] - '0'); q.emplace(temp / divisor); temp %= divisor; } if...
#include <bits/stdc++.h> using namespace std; typedef long long LL; string long_division(string number, LL divisor) { string ret = ""; LL temp = 0; queue<LL> q; for (int i = 0; i < number.size(); i++) { temp = (temp * 10) + (number[i] - '0'); q.emplace(temp / divisor); temp %= divisor; } if...
[["-", 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
<?php $N = trim(fgets(STDIN)); $array = explode("7", $N); if(count($array)>1) { echo "YES"; } else { echo "NO"; }
<?php $N = trim(fgets(STDIN)); $array = explode("7", $N); if(count($array)>1) { echo "Yes"; } else { echo "No"; }
[["-", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610], ["-", 75, 76, 8, 9, 0, 608, 0, 609, 0, 610], ["+", 75, 76, 8, 9, 0, 608, 0, 609, 0, 610]]
6
50
#include <iostream> using namespace std; int main() { int x; cin >> x; int z = 0; for (int i = 0; i <= 2; i++) { if (x % 10 == 7) { cout << "yes" << endl; z++; break; } else { x /= 10; } } if (z == 0) cout << "no"; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; int z = 0; for (int i = 0; i <= 2; i++) { if (x % 10 == 7) { cout << "Yes" << endl; z++; break; } else { x /= 10; } } if (z == 0) cout << "No"; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
85
#include <iostream> using namespace std; int main(void) { int r; while (r > 1) { if (r % 10 == 7) { cout << "Yes"; return 0; } r = r / 10; } cout << "No"; }
#include <iostream> using namespace std; int main(void) { int r; cin >> r; while (r > 1) { if (r % 10 == 7) { cout << "Yes"; return 0; } r = r / 10; } cout << "No"; }
[["+", 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
55
#include <algorithm> #include <bitset> #include <deque> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #include <limits.h> #include <math.h> #include <stdlib.h> #include <string.h> const int INF = 0x7fffffff; us...
#include <algorithm> #include <bitset> #include <deque> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #include <limits.h> #include <math.h> #include <stdlib.h> #include <string.h> const int INF = 0x7fffffff; us...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 28, 22], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 17, 131], ["+", 0, 7, 15, 16, 12, 2, 63, 118, 119, 120], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 7, 15, 16, 12, 2, 3, 4, 0, 25]]
1
146
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int fl = 1; for (char c : s) { if (c == '7') { cout << "YES" << endl; fl = 0; break; } } if (fl) cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int fl = 1; for (char c : s) { if (c == '7') { cout << "Yes" << endl; fl = 0; break; } } if (fl) cout << "No" << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
69
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string a; cin >> a; ll b = a.size(); for (ll i = 0; i < b; i++) { if (a.at(i) == 0) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { string a; cin >> a; ll b = a.size(); for (ll i = 0; i < b; i++) { if (a.at(i) == '7') { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 125]]
1
82
n = int(input()) while n > 0: mod = n % 10 if mod == 7: print('Yes') exit(0) n = n / 10 print('No')
n = int(input()) while n > 0: mod = n % 10 if mod == 7: print('Yes') exit(0) n = n // 10 print('No')
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]]
5
44
n = int(input()) if n.count(7) != 0: print('Yes') exit() print('No')
n = str(input()) if n.count('7') != 0: print('Yes') exit() print('No')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 655]]
5
33
n = gets.split('').map(&:to_i) puts n.<F4>include?(7) ? 'Yes': 'No'
n = gets.split('').map(&:to_i) puts n.include?(7) ? 'Yes': 'No'
[["-", 0, 652, 3, 4, 0, 652, 735, 17, 0, 18], ["-", 0, 652, 3, 4, 0, 754, 15, 738, 31, 743], ["-", 0, 652, 3, 4, 0, 754, 15, 738, 17, 47]]
4
33
import java.util.Scanner; public class Main { static int N; static int b = 0; public static String dfs(int a) { if (a % 10 == 7) { b = 1; return "yes"; } else if (a < 10 && b == 0) { return "No"; } else { String ans = "No"; for (int i = 0; i < 3; i++) { ans = dfs(...
import java.util.Scanner; public class Main { static int N; static int b = 0; public static String dfs(int a) { if (a % 10 == 7) { b = 1; return "Yes"; } else if (a < 10 && b == 0) { return "No"; } else { String ans = "No"; for (int i = 0; i < 3; i++) { ans = dfs(...
[["-", 0, 57, 64, 196, 0, 37, 0, 5, 0, 491], ["+", 0, 57, 64, 196, 0, 37, 0, 5, 0, 491]]
3
156
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; while (n) { if ((n % 10) % 7 == 0) { cout << "Yes\n"; return 0; } n /= 10; } cout << "No\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; while (n) { if ((n % 10) == 7) { cout << "Yes\n"; return 0; } n /= 10; } cout << "No\n"; 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
77
import sys N = int(input) for i in range(len(N)): if N[i]==7: print('Yes') sys.exit() print('No')
import sys N = input() for i in range(len(N)): if N[i]=='7': print('Yes') sys.exit() 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
44
S = input() if S.count(7): print("Yes") else: print("No")
S = input() if S.count('7'): print("Yes") else: print("No")
[["+", 0, 57, 15, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 57, 15, 652, 3, 4, 0, 557, 0, 655]]
5
27
#include <iostream> using namespace std; int main() { int n, ans = false; cin >> n; if (n % 10 == 7) ans = true; n /= 10; if (n % 10 == 7) ans = true; n /= 10; if (n % 10 == 7) ans = true; if (ans == true) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <iostream> using namespace std; int main() { int n, ans = false; cin >> n; if (n % 10 == 7) ans = true; n /= 10; if (n % 10 == 7) ans = true; n /= 10; if (n % 10 == 7) ans = true; if (ans == true) { 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
94
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); boolean b = false; while (N / 10 > 0) { if (N % 10 == 7) { b = true; break; } else { N = N % 10; } ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); boolean b = false; while (N / 10 > 0) { if (N % 10 == 7) { b = true; break; } else { N = N / 10; } ...
[["-", 75, 196, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 75, 196, 0, 1, 0, 11, 12, 16, 17, 85]]
3
123
#include <bits/stdc++.h> 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 /= 10; } cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> 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 /= 10; } 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
71
input = gets if input.include?("7") puts "yes" else puts "no" end
input = gets if input.include?("7") puts "Yes" else puts "No" end
[["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
22
n = input() for i in range(len(n)): if n[i] == '7': print('Yes') else: print('No')
n = input() for i in range(len(n)): if n[i] == '7': print('Yes') exit() print('No')
[["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
40
s = str(input()) if "7" in s: print("YES") else: print("NO")
s = str(input()) if "7" in s: 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
s= input() i=0 res=[] while i< len(s): j=s[i:i+1] res.append(j) i+=1 print('Yes' if str(7) in res else 'NO')
s= input() i=0 res=[] while i< len(s): j=s[i:i+1] res.append(j) i+=1 print('Yes' if str(7) in res else 'No')
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]]
5
56
N=int(input()) if N.count('7')==0: print('No') else: print('Yes')
N=input() if N.count('7')==0: print('No') else: print('Yes')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
34
#include <bits/stdc++.h> using namespace std; int main() { int n, x, f = 0; cin >> n; while (n != 0) { x = n % 10; n = n / 10; if (x == 7) { f == 1; } } if (f == 1) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, x, f = 0; cin >> n; while (n != 0) { x = n % 10; n = n / 10; if (x == 7) { f = 1; } } if (f == 1) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
1
80
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] n = sc.next().toCharArray(); String ans = "NO"; for (int i = 0; i < n.length; i++) { if (n[i] == '7') ans = "YES"; } System.out.println(ans); }...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] n = sc.next().toCharArray(); String ans = "No"; for (int i = 0; i < n.length; i++) { if (n[i] == '7') ans = "Yes"; } System.out.println(ans); }...
[["-", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["+", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 491], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 491]]
3
99
n = int(input()) ans = 0 for i in range(0,3): if (n % 10) % 7 == 0: ans = 1 break else: n = int(n/10) if ans == 1: print('Yes') else: print('No')
n = int(input()) ans = 0 for i in range(0,3): if (n % 10) == 7: ans = 1 break else: n = int(n/10) if ans == 1: 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
65
n=input() result='' for s in n: if s=='7': result+='Yes' else: continue if result=='Yes': print(result) else: print('No')
n=input() result='' for s in n: if s=='7': result+='Yes' break else: continue if result=='Yes': print(result) else: print('No')
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
5
48
N = input() print("Yes" if N in "7" else "No")
N = input() print("Yes" if "7" in N else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 267], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 267], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]]
5
21
N = input() if N.count == 0: print("No") else: print("Yes")
N = input() if N.count("7") == 0: print("No") else: print("Yes")
[["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 15, 666, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
26
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int pro = 1; for (int i = 0; i < 3; i++) { pro *= 10; if ((n % pro) / (pro / 10) == 7) { cout << "Yes" << endl; } else if (i == 2) { cout << "No" << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int pro = 1; for (int i = 0; i < 3; i++) { pro *= 10; if ((n % pro) / (pro / 10) == 7) { cout << "Yes" << endl; break; } else if (i == 2) { cout << "No" << endl; } } }
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
87
l=int(input()) if 7 in l: print("Yes") else: print("No")
l=input() if "7" in l: 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], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
27
N = input() ans = 'Yes' for n in N: if n == '7': ans = 'No' print(ans)
N = input() ans = 'No' for n in N: if n == '7': ans = 'Yes' print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
31
N = input() n = set(N) if 7 in n: print("Yes") else: print("No")
N = input() n = set(N) if "7" in n: print("Yes") else: print("No")
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
30
#include <bits/stdc++.h> using namespace std; int main() { string A, B; cin >> A; for (int i = 0; i < A.size(); i++) { if (A.at(i) == '7') { B = "YES"; break; } } if (B == "Yes") { cout << B << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { string A, B; cin >> A; for (int i = 0; i < A.size(); i++) { if (A.at(i) == '7') { B = "Yes"; break; } } if (B == "Yes") { cout << B << endl; } else { cout << "No" << endl; } }
[["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
91
#include "bits/stdc++.h" using namespace std; /*#include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace __gnu_pbds; typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;*/ //#define int long long //#define error freop...
#include "bits/stdc++.h" using namespace std; /*#include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> using namespace __gnu_pbds; typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;*/ //#define int long long //#define error freop...
[["-", 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
245
n = gets.to_s if n.include?("7") puts "yes" else puts "no" end
n = gets.to_s if n.include?("7") puts "Yes" else puts "No" end
[["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
24
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int n; cin >> n; for (int i = 0; i < 3; i++) { if (n % 10 == 7) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int n; cin >> n; for (int i = 0; i < 3; i++) { if (n % 10 == 7) { cout << "Yes" << endl; return 0; } n /= 10; } 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
80
#include <iostream> #include <map> #include <numeric> #include <queue> #include <vector> using namespace std; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (n); i++) typedef long long ll; int main() { int n; cin >> n; rep(i, 3) { int a = 0; a = n % 10; if (a == 7) { cout << "Y...
#include <iostream> #include <map> #include <numeric> #include <queue> #include <vector> using namespace std; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (n); i++) typedef long long ll; int main() { int n; cin >> n; rep(i, 3) { int a = 0; a = n % 10; if (a == 7) { cout << "Y...
[["-", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22]]
1
104
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #define lli long long int using namespace std; #define S second #define F first #define pb push_back #define M1 1000000007 #define M2 998244353 #define plli pair<lli, lli> #define setit set<lli>::i...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <iostream> #define lli long long int using namespace std; #define S second #define F first #define pb push_back #define M1 1000000007 #define M2 998244353 #define plli pair<lli, lli> #define setit set<lli>::i...
[["-", 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
280
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n % 10 == 7 || n / 10 % 10 == 7 || n / 100 % 7 == 7) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n % 10 == 7 || n / 10 % 10 == 7 || n / 100 % 10 == 7) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13]]
1
67
n = gets.chomp.split(//) puts n.include?('7') ? 'YES' : 'NO'
n = gets.chomp.split(//) puts n.include?('7') ? 'Yes' : 'No'
[["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]]
4
28
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <forward_list> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #inc...
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <forward_list> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #inc...
[["+", 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
247
N=[input()] if N.count("7")>=1: print("Yes") else: print("No")
N=input() if N.count("7")>=1: print("Yes") else: print("No")
[["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73]]
5
33
#文字列の入力 S = input() S_list = list(S) ans = 0 for i in range(len(S_list)): if(S_list[i] == "7"): ans = 7 else: ans = 0 if(ans == 7): print("Yes") else: print("No")
#文字列の入力 S = input() S_list = list(S) ans = 0 for i in range(len(S_list)): if(S_list[i] == "7"): ans = 7 else: ans = ans if(ans == 7): print("Yes") else: print("No")
[["-", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 22]]
5
67
def main(): n = int(input()) for i in range(3): if n%10 == 7: print("Yes") return n /= 10 print("No") if __name__ == "__main__": main()
def main(): n = int(input()) for i in range(3): if n%10 == 7: print("Yes") return n //= 10 print("No") if __name__ == "__main__": main()
[["-", 0, 7, 8, 196, 0, 1, 0, 677, 17, 90], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 17, 691]]
5
54
n = input() ans=0 for i in n: if i==7: ans=1 if ans==1: print("Yes") else: print("No")
n = input() ans=0 for i in n: if i==str(7): ans=1 if ans==1: print("Yes") else: print("No")
[["+", 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
40
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int j = 0; for (int i = 0; i < 3; i++) { if (N % 10 == 7) { j = 1; cout << "Yes" << endl; break; } N = N / 10; } if (j == 0) { cout << "False" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int j = 0; for (int i = 0; i < 3; i++) { if (N % 10 == 7) { j = 1; cout << "Yes" << endl; break; } N = N / 10; } if (j == 0) { cout << "No" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
86
import re # input n = input() # judge if (re.match('.*7.*', n)): print("YES") else: print("NO")
import re # input n = input() if (re.match('.*7.*', 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
37