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
A,B,C=map(int,input().split()) if A==5: if B==5: if C==7: print("Yes") else: print("No") elif B==7: if C==5: print("Yes") else: print("No") else: print("No") elif A==7: if B==5 and C==5: print("Yes") else: print("No") else: print("No")
A,B,C=map(int,input().split()) if A==5: if B==5: if C==7: print("YES") else: print("NO") elif B==7: if C==5: print("YES") else: print("NO") else: print("NO") elif A==7: if B==5 and C==5: print("YES") else: print("NO") else: print("NO")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
115
#include <stdio.h> #include <stdlib.h> int main() { int num_5, num_7; int i; char str[10]; num_5 = num_7 = 0; scanf("%c", str[0]); scanf("%c", str[1]); scanf("%c", str[2]); for (i = 0; i < 3; i++) { if (atoi(str[i]) == 5) { num_5++; } else if (atoi(str[i]) == 7) { num_7++; } ...
#include <stdio.h> #include <stdlib.h> int main() { int num_5, num_7; int i; char str[3][10]; num_5 = num_7 = 0; scanf("%s", str[0]); scanf("%s", str[1]); scanf("%s", str[2]); for (i = 0; i < 3; i++) { if (atoi(str[i]) == 5) { num_5++; } else if (atoi(str[i]) == 7) { num_7++; }...
[["+", 8, 9, 0, 43, 49, 80, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 80, 49, 80, 0, 73], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 0, 70], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0...
0
147
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == 5) { if (B == 7 && C == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else if (B == 5) { if (A == 7 && C == 7) { cout << "YES" << endl; } else { cou...
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == 7) { if (B == 5 && C == 5) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else if (B == 7) { if (A == 5 && C == 5) { cout << "YES" << endl; } else { co...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12,...
1
157
#include <algorithm> #include <array> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; std::vector<std::string> split(const std::string &input, char delimiter) { std::istringstream stream(input); std::string field; std::vector<std::string> result; while (std::get...
#include <algorithm> #include <array> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; std::vector<std::string> split(const std::string &input, char delimiter) { std::istringstream stream(input); std::string field; std::vector<std::string> result; while (std::get...
[["-", 31, 16, 31, 16, 31, 16, 31, 343, 141, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-...
1
305
package main import ( "fmt" "sort" ) func main() { var a, b, c int fmt.Scanf("%d %d %d", &a, &b, &c) arr := []int{a, b, c} // 昇順ソートして 5, 5, 7 で格納されれば良い sort.Ints(arr) if arr[0] == 5 && arr[1] == 5 && arr[2] == 7 { println("YES") } else { println("NO") } }
package main import ( "fmt" "sort" ) func main() { var a, b, c int fmt.Scan(&a, &b, &c) arr := []int{a, b, c} // 昇順ソートして 5, 5, 7 で格納されれば良い sort.Ints(arr) if arr[0] == 5 && arr[1] == 5 && arr[2] == 7 { fmt.Println("YES") } else { fmt.Println("NO") } }
[["-", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["+", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["-", 0, 1, 0, 2, 3, 4, 0, 429, 0, 62], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 0, 57, 64, 196, 0, 1, 0, 2, 63, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+", 64, 196...
7
109
#include <bits/stdc++.h> using namespace std; int main() { // 配列 vector<int> X; // int型の配列変数vecを宣言 cin >> X.at(0) >> X.at(1) >> X.at(2); sort(X.begin(), X.end()); if ((X.at(0) == 5) && (X.at(1) == 5) && (X.at(2) == 7)) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
//#include <bits/stdc++.h> #include <vector> //#include <stdio.h> #include <algorithm> #include <iostream> using namespace std; int main() { // 配列 vector<int> X(3); // int型の配列変数vecを宣言 cin >> X.at(0) >> X.at(1) >> X.at(2); sort(X.begin(), X.end()); if ((X.at(0) == 5) && (X.at(1) == 5) && (X.at(2) == 7)) {...
[["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25]]
1
114
<?php $bunsetus = trim(fgets(STDIN)); $bunsetu = explode(" ", $bunsetus); $seven_count=0; $five_count=0; for($i = 0 ; $i < count($bunsetu); $i++){ if($bunsetu[$i]==7){ $seven_count+=1; } } for($j = 0 ; $j < count($bunsetu); $j++){ if($bunsetu[$j]==7){ $five_count+=1; } } if($five_coun...
<?php $bunsetus = trim(fgets(STDIN)); $bunsetu = explode(" ", $bunsetus); $seven_count=0; $five_count=0; for($i = 0 ; $i < count($bunsetu); $i++){ if($bunsetu[$i]==7){ $seven_count+=1; } } for($j = 0 ; $j < count($bunsetu); $j++){ if($bunsetu[$j]==5){ $five_count+=1; } } if($five_c...
[["-", 0, 9, 0, 57, 15, 23, 0, 16, 12, 612], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 12, 612], ["-", 0, 493, 0, 57, 8, 9, 0, 37, 0, 38], ["-", 0, 493, 0, 57, 8, 9, 0, 37, 0, 141], ["+", 0, 493, 0, 57, 8, 9, 0, 608, 0, 621], ["+", 0, 57, 8, 9, 0, 608, 0, 609, 0, 62], ["+", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610], ["-", 36, 36, 3...
6
136
a=list(map(int,input().split())) if a.count(5)==2: if a.count(7)==1: print("Yes") else: print("No") else: print("No")
a=list(map(int,input().split())) if a.count(5)==2: if a.count(7)==1: print("YES") else: print("NO") else: print("NO")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
59
i = list(map(int, input().split())) if 7 in i: i.remove(7) if i[0] == 5 and i[1] == 5: print('Yes') else: print('No') else: print('No')
i = list(map(int, input().split())) if 7 in i: i.remove(7) if i[0] == 5 and i[1] == 5: print('YES') else: print('NO') else: print('NO')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
65
a,b,c = map(int,input().split()) coutn5 = [x for x in [a,b,c] if x==5] coutn7 = [x for x in [a,b,c] if x==7] if len(count5)==2 and len(count7)==1: print('YES') else: print('NO')
a,b,c = map(int,input().split()) count5 = len([x for x in [a,b,c] if x==5]) count7 = len([x for x in [a,b,c] if x==7]) if count5==2 and count7==1: print('YES') else: print('NO')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 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, 57, 15, 679, 31, 666, 0, 652, 63, 22], ["-", 15, 679, 31, 666, 0, 652, 3, 4, 0, 24], ["-...
5
85
#include <bits/stdc++.h> using namespace std; #define rep(i, n) \ ; \ for (int i = 0; i < n; ++i) using ll = long long; using P = pair<int, int>; int main() { int a, b, c; cin...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) \ ; \ for (int i = 0; i < n; ++i) using ll = long long; using P = pair<int, int>; int main() { int a, b, c; cin...
[["+", 64, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 64, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 64, 9, 0, 57, 64, 9, 0, 37, 0, 35], ["+", 64, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
146
a, b, c = map(int, input().split(' ')) if a + b + c != 17: print 'NO' else if a * b * c != 175: print 'NO' else: print 'YES'
a, b, c = map(int, input().split(' ')) if a + b + c != 17: print('NO') elif a * b * c != 175: print('NO') else: print('YES')
[["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 36, 36, 36, 36, 0, 656, 0, 42, 0, 95], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
54
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; vector<int> v; v.push_back(a); v.push_back(b); v.push_back(c); if (count(v.begin(), v.end(), 5) == 2 && count(v.begin(), v.end(), 7) == 1) cout << "YES"; else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; vector<int> v; v.push_back(a); v.push_back(b); v.push_back(c); if (count(v.begin(), v.end(), 5) == 2 && count(v.begin(), v.end(), 7) == 1) cout << "YES"; else cout << "NO"; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
99
li = input().split() if ('7' in li) == True: if ('5' in li) == True: if li[0] == '5': if li[1] == '5' or li[2] == '5': print("Yes") else: print("No") elif li[1] == '5' and li[2] == '5': print("Yes") else: print("...
li = input().split() if ('7' in li) == True: if ('5' in li) == True: if li[0] == '5': if li[1] == '5' or li[2] == '5': print("YES") else: print("NO") elif li[1] == '5' and li[2] == '5': print("YES") else: print("...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
123
x = list(input().split()) five = 0 seven = 0 for i in x: if i == 5: five += five elif i == 7: seven += seven if seven == 1 and five == 2: print('YES') else: print('NO')
x = list(map(int,input().split())) five = 0 seven = 0 for i in x: if i == 5: five += 1 elif i == 7: seven += 1 if seven == 1 and five == 2: 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], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612], ["-", 75, ...
5
62
#include <stdio.h> int main(void) { int A, B, C; scanf("%d %d %d", &A, &B, &C); if (A == 7) { if (B == 5 && C == 5) { printf("Yes\n"); } else printf("No\n"); } else if (A == 5) { if (B == 7 && C == 5) { printf("Yes\n"); } else if (C == 7 && B == 5) { printf("Yes\n"); ...
#include <stdio.h> int main(void) { int A, B, C; scanf("%d %d %d", &A, &B, &C); if (A == 7) { if (B == 5 && C == 5) { printf("YES\n"); } else printf("NO\n"); } else if (A == 5) { if (B == 7 && C == 5) { printf("YES\n"); } else if (C == 7 && B == 5) { printf("YES\n"); ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
137
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A * B * C == 175) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A * B * C == 5 * 5 * 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0,...
1
58
a, b, c = map(int, input().split()) if a == b and a == 5: if c == 7: print("Yes") else: print("No") elif b == c and b == 5: if a == 7: print("Yes") else: print("No") elif a == c and c == 5: if b == 7: print("Yes") else: print("No") else: print...
a, b, c = map(int, input().split()) if a == b and a == 5: if c == 7: print("YES") else: print("NO") elif b == c and b == 5: if a == 7: print("YES") else: print("NO") elif a == c and c == 5: if b == 7: print("YES") else: print("NO") else: print...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
110
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long int main() { int a, b, c; cin >> a >> b >> c; if (a == 5) cout << "Yes" << endl; else cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long int main() { int a, b, c; cin >> a >> b >> c; if (a + b + c == 17) cout << "YES" << endl; else cout << "NO" << endl; }
[["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 72], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6...
1
56
/* 作成日:2020-03-15 */ #include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == 5 && b == 5 && c == 7) printf("YES\n"); else if (a == 5 && b == 7 && c == 5) printf("YES\n"); else if (a == 7 && b == 5 && c == 5) printf("YES\n"); return 0; }
/* 作成日:2020-03-15 */ #include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == 5 && b == 5 && c == 7) printf("YES\n"); else if (a == 5 && b == 7 && c == 5) printf("YES\n"); else if (a == 7 && b == 5 && c == 5) printf("YES\n"); else printf("NO\n"); return 0; ...
[["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22], ["+", 75, 76, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 75, 76, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 75, 76, 0, 57, 75, 76, 0, 1, 0, 35...
0
103
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int a, b, c; cin >> a >> b >> c; if (a >= b && b <= c) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; #define ll long long int main() { int a, b, c; cin >> a >> b >> c; if ((a + b + c) == 17) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17,...
1
61
'use strict'; function main(input) { const inputs = input.split(' '); const sum = inputs.reduce((a, b) => a + b); if (sum != 17) { console.log('NO'); return; } let i = inputs.shift() | 0; while (i) { if (i != 5 && i != 7) { console.log('NO'); return; } i = inputs.shift() |...
'use strict'; function main(input) { const inputs = input.split(' ').map((x) => x | 0); const sum = inputs.reduce((a, b) => a + b); if (sum != 17) { console.log('NO'); return; } let i = inputs.shift(); while (i) { if (i != 5 && i != 7) { console.log('NO'); return; } i = in...
[["+", 0, 570, 0, 200, 51, 2, 63, 558, 0, 131], ["+", 0, 570, 0, 200, 51, 2, 63, 558, 559, 560], ["+", 0, 570, 0, 200, 51, 2, 3, 3, 0, 24], ["+", 51, 2, 3, 3, 0, 568, 54, 495, 0, 24], ["+", 51, 2, 3, 3, 0, 568, 54, 495, 0, 22], ["+", 51, 2, 3, 3, 0, 568, 54, 495, 0, 25], ["+", 0, 200, 51, 2, 3, 3, 0, 568, 0, 221], ["+"...
2
140
a, b, c = map(int, input().split()) if a == 5: if (b == 5 and c == 7) or (b == 7 and c == 5): print('YES') else: print('NO') elif b == 5: if (a == 5 and c == 7) or (a == 7 and c == 5): print('YES') else: print('NO') elif c == 5: if (a == 5 and b == 7) or (a == 7 and b == 5): print('YES') ...
a, b, c = map(int, input().split()) if a == 5: if (b == 5 and c == 7) or (b == 7 and c == 5): print('YES') else: print('NO') elif b == 5: if (a == 5 and c == 7) or (a == 7 and c == 5): print('YES') else: print('NO') elif c == 5: if (a == 5 and b == 7) or (a == 7 and b == 5): print('YES') ...
[["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 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], ["+", 8, 196, ...
5
138
import sys a,b,c = map(int,input().split) if 7 in [a,b,c]: if filter(lambda x:x ==5,[a,b,c]) is 2: print("YES") sys.exit() print("NO")
import sys a,b,c = map(int,input().split()) if 7 in [a,b,c]: if len(list(filter(lambda x:x ==5,[a,b,c]))) is 2: print("YES") sys.exit() print("NO")
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 64, 196, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 15, 666, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
67
#include "bits/stdc++.h" using namespace std; int main() { int A, B, C; if (A + B + C == 17) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include "bits/stdc++.h" using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A + B + C == 17) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
55
function Main(input) { input = input.split(" "); //空白で区切るってことやろ var A = parseInt(input, 10); var B = parseInt(input, 10); var C = parseInt(input, 10); //とりあえず入力持ってきて10進数にした let five = 2; //後で使う if (A + B + C != 17) { console.log("NO"); //合計が 17じゃなきゃ 違うやろ } else { if (A == 5) { f...
function Main(input) { input = input.split(" "); //空白で区切るってことやろ var A = parseInt(input[0], 10); var B = parseInt(input[1], 10); var C = parseInt(input[2], 10); //とりあえず入力持ってきて10進数にした var five = 2; //後で使う if (A + B + C != 17) { console.log("NO"); //合計が 17じゃなきゃ 違うやろ } else { if (A == 5) ...
[["+", 0, 200, 51, 2, 3, 3, 0, 69, 0, 70], ["+", 0, 200, 51, 2, 3, 3, 0, 69, 71, 555], ["+", 0, 200, 51, 2, 3, 3, 0, 69, 0, 73], ["-", 0, 493, 0, 435, 8, 556, 0, 570, 571, 243], ["+", 0, 493, 0, 435, 8, 556, 0, 198, 0, 217]]
2
167
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A, B, C; if ((A, B == 5 && C == 7) || (B, C == 5 && A == 7) || (A, C == 5 && B == 7)) cout << "YES"; else cout << "NO"; return 0; }
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if ((A == 5 && B == 5 && C == 7) || (B == 5 && C == 5 && A == 7) || (A == 5 && C == 5 && B == 7)) cout << "YES"; else cout << "NO"; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 34, 12, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 51, 16, 31, 16, 31, 23, 0, 34, 0, 21], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 17, 60], ["+", 31, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["+", 31, 16, 31...
1
81
<?php $arr = array('5', '7', '5'); $five = 0; $seven = 0; foreach($arr as $key => $value) { $arr[$key] = intval($value); if ($arr[$key] === 5) { $five++; continue; } if ($arr[$key] === 7) { $seven++; continue; } } if ($five === 2 && $seven === 1) { echo 'Y...
<?php $arr = explode(' ', fgets(STDIN)); $five = 0; $seven = 0; foreach($arr as $key => $value) { $arr[$key] = intval($value); if ($arr[$key] === 5) { $five++; continue; } if ($arr[$key] === 7) { $seven++; continue; } } if ($five === 2 && $seven === 1) { e...
[["-", 0, 493, 0, 1, 0, 11, 12, 227, 0, 516], ["+", 0, 493, 0, 1, 0, 11, 12, 613, 63, 141], ["-", 0, 11, 12, 227, 0, 618, 0, 557, 0, 610], ["+", 12, 613, 3, 3, 0, 28, 0, 557, 0, 610], ["-", 0, 11, 12, 227, 0, 618, 0, 557, 0, 104], ["-", 0, 493, 0, 1, 0, 11, 12, 227, 0, 21], ["+", 12, 613, 3, 3, 0, 28, 0, 613, 63, 141],...
6
120
a, b, c = map(int, input().split()) if a, b, c == (5, 5, 7): print(YES) elif a, b, c == (5, 7, 5): print(YES) elif a, b, c == (7, 5, 5): print(YES) else: print(NO)
a, b, c = map(int, input().split()) if (a, b, c) == (5, 5, 7): print("YES") elif (a, b, c) == (5, 7, 5): print("YES") elif (a, b, c) == (7, 5, 5): print("YES") else: print("NO")
[["+", 0, 656, 0, 57, 15, 666, 0, 660, 0, 24], ["+", 0, 656, 0, 57, 15, 666, 0, 660, 0, 25], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 57, 75, 665, 15, 666, 0, 660, 0, 24], ["+", 0, 57, 75, 665, 15, 666, 0, 660, 0, 25]]
5
81
a, b, c = map(str, input().split()) sor_len_list = sorted([len(a), len(b), len(c)]) if sor_len_list == [5, 5, 7]: print('YES') else: print('NO')
a, b, c = map(int, input().split()) sor_len_list = sorted([a, b, c]) if sor_len_list == [5, 5, 7]: print('YES') else: print('NO')
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["-", 12, 652, 3, 4, 0, 634, 0, 652, 63, 22], ["-", 3, 4, 0, 634, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 634, 0, 652, 3, 4, 0, 25]]
5
64
a,b,c=input().split() d=[a,b,c] print(d.count("5")) if d.count("5")==2 and d.count("7")==1: print("YES") else: print("NO")
a,b,c=input().split() d=[a,b,c] if d.count("5")==2 and d.count("7")==1: 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, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3...
5
70
#include <math.h> #include <stdio.h> int main(void) { int A[3]; for (int i = 0; i < 3; i++) { scanf("%d", A[i]); } for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { if (A[j] > A[j + 1]) { int tmp = 0; A[j + 1] = tmp; A[j + 1] = A[j]; A[j] = tmp; }...
#include <math.h> #include <stdio.h> int main(void) { int A[3]; for (int i = 0; i < 3; i++) { scanf("%d", &A[i]); } for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { if (A[j] > A[j + 1]) { int tmp; tmp = A[j + 1]; A[j + 1] = A[j]; A[j] = tmp; } ...
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 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, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 57, 64, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 57, 64, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 57, 64, 9, 0, 1, ...
0
171
#include <stdio.h> int main() { int A, B, C; int ans = 0; scanf("%d%d%d", &A, &B, &C); if (A == 5, B == 5, C == 7) { ans = 1; } if (A == 5, B == 7, C == 5) { ans = 1; } if (A == 7, B == 5, C == 5) { ans = 1; } if (ans == 1) { printf("%s", "YES"); } else { printf("%s", "NO"); ...
#include <stdio.h> int main() { int A, B, C; int ans = 0; scanf("%d%d%d", &A, &B, &C); if (A == 5 && B == 5 && C == 7) { ans = 1; } if (A == 5 && B == 7 && C == 5) { ans = 1; } if (A == 7 && B == 5 && C == 5) { ans = 1; } if (ans == 0) { printf("%s", "NO"); } else { printf("%s"...
[["-", 8, 9, 0, 57, 15, 339, 51, 34, 0, 21], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 34, 12, 34, 0, 21], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1...
1
129
#include <bits/stdc++.h> #include <iomanip> using namespace std; typedef long long ll; typedef long l; typedef pair<int, int> P; #define rep(i, n) for (int i = 0; i < n; i++) #define fs first #define sc second #define pb push_back #define mp make_pair #define eb emplace_back #define ALL(A) A.begin(), A.end() const doub...
#include <bits/stdc++.h> #include <iomanip> using namespace std; typedef long long ll; typedef long l; typedef pair<int, int> P; #define rep(i, n) for (int i = 0; i < n; i++) #define fs first #define sc second #define pb push_back #define mp make_pair #define eb emplace_back #define ALL(A) A.begin(), A.end() const doub...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, ...
1
289
a,b,c = map(int,input().split()) if a+b+c == 17: if a == 7 or a == 5: if b == 7 or b == 5: if c == 7 or c == 5: print("YES") else: print("NO")
a,b,c = map(int,input().split()) d=0 if a+b+c == 17: if a == 7 or a == 5: if b == 7 or b == 5: if c == 7 or c == 5: print("YES") d =1 if d == 0:print("NO")
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 57, 64, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 612], ["+"...
5
68
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < (N); i++) #define all(a) (a).begin(), (a).end() #define pb push_back using ll = long long; using i_i = tuple<int, int>; int main() { vector<int> a(3); rep(i, 3) cin >> a[i]; return ((a[0] == 5 && a[1] == 5 && a[2] == 7) || ...
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 0; i < (N); i++) #define all(a) (a).begin(), (a).end() #define pb push_back using ll = long long; using i_i = tuple<int, int>; int main() { vector<int> a(3); rep(i, 3) cin >> a[i]; bool x = ((a[0] == 5 && a[1] == 5 && a[2] == 7) || ...
[["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16...
1
140
package main import "fmt" func main() { var a, b, c int fmt.Scanf("%d %d %d", &a, &b, &c) fmt.Println(a, b, c) if a == 7 { if b == 5 && c == 5 { fmt.Println("YES") } else { fmt.Println("NO") } } else if a == 5 { if b == 7 && c == 5 { fmt.Println("YES") } else if b == 5 && c == 7 { ...
package main import "fmt" func main() { var a, b, c int fmt.Scanf("%d %d %d", &a, &b, &c) if a == 7 { if b == 5 && c == 5 { fmt.Println("YES") } else { fmt.Println("NO") } } else if a == 5 { if b == 7 && c == 5 { fmt.Println("YES") } else if b == 5 && c == 7 { fmt.Println("YES") ...
[["-", 8, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["-", 8, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 36, 36, 0, 434, 0,...
7
161
def haiku(sentence_length_list): length_five_cnt=0 length_seven_cnt=0 for s in sentence_length_list: if s=='5': length_five_cnt=length_five_cnt+1 if s=='7': length_seven_cnt=length_seven_cnt+1 if length_five_cnt==2 and length_seven_cnt==1: return 'YES' ...
def haiku(sentence_length_list): length_five_cnt=0 length_seven_cnt=0 for s in sentence_length_list: if s=='5': length_five_cnt=length_five_cnt+1 if s=='7': length_seven_cnt=length_seven_cnt+1 if length_five_cnt==2 and length_seven_cnt==1: return 'YES' ...
[["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 1...
5
77
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); cin >> vec.at(0) >> vec.at(1) >> vec.at(2); sort(vec.begin(), vec.end()); cout << vec.at(2) << endl; if ((vec.at(0) == 5 && vec.at(1) == 5) && vec.at(2) == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); cin >> vec.at(0) >> vec.at(1) >> vec.at(2); sort(vec.begin(), vec.end()); if ((vec.at(0) == 5 && vec.at(1) == 5) && vec.at(2) == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 16, 31, 16, 12, 2, 63, 118, 28, 22], ["-", 0, 16, 31, 16, 12, 2, 63, 118, 17, 131], ["-", 0, 16, 31, 16, 12, 2, 63, 118, 119, 120], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 0, ...
1
122
import sys a = int(input()) b = int(input()) c = int(input()) if (a == 5 or a == 7): if (b == 5 or b == 7): if (c == 5 or c == 7): d = a * b * c if (d == 175): print("YES") else: print("NO") else: print("NO") else: print("NO") else: print("NO")
import sys a, b, c = map(int,input().split()) if (a == 5 or a == 7): if (b == 5 or b == 7): if (c == 5 or c == 7): d = a * b * c if (d == 175): print("YES") else: print("NO") else: print("NO") else: print("NO") else: print("NO")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 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], ["+", 0, 65...
5
111
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int five = 0; int seven = 0; string a, b, c; cin >> a >> b >> c; if (a.size() == 5) { five++; } else if (a.size() == 7) { seven++; } if (b.size() == 5) { five++; } else if (b.size() == 7...
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int five = 0; int seven = 0; int a, b, c; cin >> a >> b >> c; if (a == 5) { five++; } else if (a == 7) { seven++; } if (b == 5) { five++; } else if (b == 7) { seven++; } if (c ==...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 15, 339, 51, 16, 31, 2, 63, 118, 17, 131], ["-", 15, 339, 51, 16, 31, 2, 63, 118, 119, 120], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25]]
1
175
#include <bits/stdc++.h> using namespace std; int main() { vector<int> num(3, 0); int f = 0, s = 0; for (int i = 0; i < 3; i++) { cin >> num.at(i); } for (int i = 0; i < 3; i++) { if (num.at(i) == 5) { f += 1; } else if (num.at(i) == 7) { s += 1; } } if (f == 2 && s ==...
#include <bits/stdc++.h> using namespace std; int main() { vector<int> num(3, 0); int f = 0, s = 0; for (int i = 0; i < 3; i++) { cin >> num.at(i); } for (int i = 0; i < 3; i++) { if (num.at(i) == 5) { f += 1; } else if (num.at(i) == 7) { s += 1; } } if (f == 2 && s ==...
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", ...
1
149
a = input() if a.count('5') == 2: if a.count('7') == 1: print('yes') else: print('no') else: print('no')
a = input().split() if a.count('5') == 2: if a.count('7') == 1: print('YES') else: print('NO') else: print('NO')
[["+", 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], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
51
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == 5 && b == 5 && c == 7) { printf("YES\n"); } else { printf("NO\n"); } if (a == 5 && b == 7 && c == 5) { printf("YES\n"); } else { printf("NO\n"); } if (a == 7 && b == 5 && c == 5) { printf("Y...
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == 5 && b == 5 && c == 7) { printf("YES\n"); } else if (a == 5 && b == 7 && c == 5) { printf("YES\n"); } else if (a == 7 && b == 5 && c == 5) { printf("YES\n"); } else { printf("NO\n"); } return 0; ...
[["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 9, 0, 1, 0, 2, 63, 22], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["-", 8...
0
140
A, B, C = map(int, input().split()) if A + B + C == 17: if A == 5: if B + C == 12: print(YES) else: print(NO) if A == 7: if B + C == 10: print(YES) else: print(NO) else: print(NO) else: print(NO)
A, B, C = map(int, input().split()) if A + B + C == 17: if A == 5: if B + C == 12: print("YES") else: print("NO") elif A == 7: if B + C == 10: print("YES") else: print("NO") else: print("NO") else: print("NO")
[["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 656, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 75, 665, 0, 683]]
5
83
x = str(input()) if count(x,"5")==2 and count(x,"7")==1: print("YES") else: print("NO")
x = str(input()) if x.count("5")==2 and x.count("7")==1: print("YES") else: print("NO")
[["+", 15, 679, 31, 666, 0, 652, 63, 319, 500, 22], ["+", 15, 679, 31, 666, 0, 652, 63, 319, 0, 131], ["-", 15, 679, 31, 666, 0, 652, 3, 4, 0, 22], ["-", 15, 679, 31, 666, 0, 652, 3, 4, 0, 21], ["+", 15, 679, 12, 666, 0, 652, 63, 319, 500, 22], ["+", 15, 679, 12, 666, 0, 652, 63, 319, 0, 131], ["-", 15, 679, 12, 666, 0...
5
45
s = "5 5 7" k = list(map(int, s.split())) k.sort() print("YES"if k == [5,5,7] else "NO")
k = list(map(int, input().split())) k.sort() print("YES"if k == [5,5,7] else "NO")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 654], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 655], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22],...
5
45
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; if (A == 5 && B == 5 && C == 7) { cout << "YES" << endl; } else if (A == 5 && B == 7 && C == 5) { cout << "YES" << endl; } else if (A == 7 && B == 5 && C == 5) { cout << "YES" << endl; } else { cout << "NO" << endl; } ...
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == 5 && B == 5 && C == 7) { cout << "YES" << endl; } else if (A == 5 && B == 7 && C == 5) { cout << "YES" << endl; } else if (A == 7 && B == 5 && C == 5) { cout << "YES" << endl; } else { cout...
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
104
#include <stdio.h> int main(void) { int A, B, C; scanf("%d %d %d", &A, &B, &C); if (A < C && B < C) { if (A == 5 && B == 5 && C == 7) { printf("%s", "YES"); } else { printf("%s", "NO"); } } if (A < B && C < B) { if (A == 5 && C == 5 && B == 7) { printf("%s", "YES"); } el...
#include <stdio.h> int main(void) { int A, B, C; scanf("%d %d %d", &A, &B, &C); if (A <= C && B <= C) { if (A == 5 && B == 5 && C == 7) { printf("%s", "YES"); } else { printf("%s", "NO"); } } else if (A <= B && C <= B) { if (A == 5 && C == 5 && B == 7) { printf("%s", "YES"); ...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
0
194
#include <stdio.h> int main(void) { int a, b, c, x; printf("Input the number : "); scanf("%d %d %d", &a, &b, &c); x = a + 100 * b + 10000 * c; if (x == 70505 || x == 50705 || x == 50507) { printf("YES"); } else { printf("NO"); } return 0; }
#include <stdio.h> int main(void) { int a, b, c, x; scanf("%d %d %d", &a, &b, &c); x = a + 100 * b + 10000 * c; if (x == 70505 || x == 50705 || x == 50507) { printf("YES"); } else { printf("NO"); } return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
89
#include <iostream> int five_count = 0; int seven_count = 0; int main() { std::string lines[3]; for (int i = 0; i < 3; i++) { std::cin >> lines[i]; if (lines[i].size() == 5) five_count++; else if (lines[i].size() == 7) seven_count++; } if (five_count == 2 && seven_count == 1) std...
#include <iostream> int five_count = 0; int seven_count = 0; int main() { int lines[3]; for (int i = 0; i < 3; i++) { std::cin >> lines[i]; if (lines[i] == 5) five_count++; else if (lines[i] == 7) seven_count++; } if (five_count == 2 && seven_count == 1) std::cout << "YES" << std...
[["-", 0, 14, 8, 9, 0, 43, 39, 343, 345, 348], ["-", 0, 14, 8, 9, 0, 43, 39, 343, 0, 349], ["-", 0, 14, 8, 9, 0, 43, 39, 343, 141, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 15, 339, 51, 16, 31, 2, 63, 118, 17, 131], ["-", 15, 339, 51, 16, 31, 2, 63, 118, 119, 120], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24],...
1
122
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int[] a = new int[3]; int five = 0; int seven = 0; for (int i = 0; i < a.length; i++) { System.out.println(i + "文字目を入力してください"); a[i] = sc.nextInt(); ...
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int[] a = new int[3]; int five = 0; int seven = 0; for (int i = 0; i < a.length; i++) { // System.out.println(i + "文字目を入力してください"); a[i] = sc.nextInt()...
[["-", 8, 196, 0, 1, 0, 492, 500, 509, 500, 22], ["-", 8, 196, 0, 1, 0, 492, 500, 509, 0, 131], ["-", 8, 196, 0, 1, 0, 492, 500, 509, 119, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 492, 0, 131], ["-", 0, 7, 8, 196, 0, 1, 0, 492, 141, 22], ["-", 8, 196, 0, 1, 0, 492, 3, 4, 0, 24], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 31, 22], ["-",...
3
184
#include <stdio.h> void swap(int *nx, int *ny) { int temp = *nx; *nx = *ny; *ny = temp; } void sort3(int *n1, int *n2, int *n3) { if (*n1 > *n2) swap(n1, n2); if (*n2 > *n3) swap(n2, n3); if (*n1 > *n2) swap(n1, n2); } int main(void) { int A, B, C; // int count_A = 0, count_B = 0; sca...
#include <stdio.h> void swap(int *nx, int *ny) { int temp = *nx; *nx = *ny; *ny = temp; } void sort3(int *n1, int *n2, int *n3) { if (*n1 > *n2) swap(n1, n2); if (*n2 > *n3) swap(n2, n3); if (*n1 > *n2) swap(n1, n2); } int main(void) { int A, B, C; // int count_A = 0, count_B = 0; sca...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
0
187
#include <stdio.h> int main(void) { int a[3], i, len = 0, str = 0; for (i = 0; i < 3; i++) { scanf("%d", &a[i]); } for (i = 0; i < 3; i++) { if (a[i] == 5) { len++; } else if (a[i] == 7) { str++; } else { printf("NO"); return 0; } } if (str == 1 && len == 2) ...
#include <stdio.h> int main(void) { int a[3], i, len = 0, str = 0; for (i = 0; i < 3; i++) { scanf("%d", &a[i]); } for (i = 0; i < 3; i++) { if (a[i] == 5) { len++; } else if (a[i] == 7) { str++; } else { printf("NO"); return 0; } } if (str == 1 && len == 2) ...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22], ["+", 75, 76, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35]]
0
130
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) // repマクロ #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) //多倍長 #define all(x) (x).begin(), (x).end() //先頭と最後を渡す #define SZ(x) ((int)(x).size()) // sizeの返り値をunsigned int型からint型にする //短くするだけ #define pb p...
//      /^>》, -―‐‐<^} //     ./:::::/,≠´:::::;:::ヽ //    /::::::〃:::::::::/:丿ハ //   ./:::::::i{l|:::::/ }::::} //   /:::::::::瓜イ-‐ ´‐ ,'::ノ //  ./:::::::::|ノヘ{、 (フ _ノノ:::イ //  |:::::::::::|/}`ス/ ̄ ̄ ̄ ̄ ̄/ //. |:::::::::|(_:::つ/  FMV  / カタカタ //. ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\/_____/ ̄ ̄ ̄ ̄ ̄ ̄ ̄ #include <bits/stdc++.h> using namespace std; #defi...
[["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 73], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 69, 28, 22], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 70], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 12, 69, ...
1
313
const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const input_lines = input.split('\n'); input_lines.forEach(line => { const inputs = line.split(' '); if ('5,5,7' === inputs.sort().toString()) { console.log('YES'); } else { console.log('NO'); } });
const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const input_lines = input.split('\n'); input_lines.forEach(line => { if (line.length > 0) { const inputs = line.split(' '); if ('5,5,7' === inputs.sort().toString()) { console.log('YES'); } else { console.log('NO'); } } });
[["+", 3, 3, 0, 568, 8, 556, 0, 57, 0, 121], ["+", 0, 568, 8, 556, 0, 57, 15, 23, 0, 24], ["+", 0, 57, 15, 23, 0, 16, 31, 558, 500, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 558, 0, 131], ["+", 0, 57, 15, 23, 0, 16, 31, 558, 559, 560], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 12, 555]...
2
94
A,B,C = map(int, input().split()) if A==7 and B==5 and C==5: print("Yes") else if A==5 and B==5 and C==7: print("Yes") else if A==5 and B==7 and C==5: print("Yes") else: print("No")
A,B,C = map(int, input().split()) if A==7 and B==5 and C==5: print("YES") elif A==5 and B==5 and C==7: print("YES") elif A==5 and B==7 and C==5: 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], ["-", 36, 36, 36, 36, 0, 656, 0, 42, 0, 95], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
85
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 7) { if (b == 5) { if (c == 5) { cout << "YES"; } else { cout << "NO"; } } else { cout << "NO"; } } else { cout << "NO"; } if (a == 5) { if (b == 7...
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 7) { if (b == 5) { if (c == 5) { cout << "YES"; } else { cout << "NO"; } } else { cout << "NO"; } } else if (a == 5) { if (b == 7) { if (c == 5) { ...
[["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 9, 0, 1, 0, 16, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
176
#include <stdio.h> int main() { int A, B, C; scanf("%d%d%d", A, B, C); if (A == 7 && B == 5 && C == 5) { printf("YES"); } else if (A == 7 && B == 5 && C == 5) { printf("YES"); } else if (A == 7 && B == 5 && C == 5) { printf("YES"); } else { printf("NO"); } return 0; }
int main() { int A, B, C; scanf("%d%d%d", &A, &B, &C); if (A == 7 && B == 5 && C == 5) { printf("YES"); } else if (A == 5 && B == 7 && C == 5) { printf("YES"); } else if (A == 5 && B == 5 && C == 7) { printf("YES"); } else { printf("NO"); } return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 15, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 12, 13], [...
0
112
from sys import stdin lis = stdin.readline().rstrip().split() a = int(lis[0]) b = int(lis[1]) c = int(lis[2]) if a == 5 or a == 7: if a == 5: if b == 5 and c ==7: print("YES") elif b == 7 and c ==5: print("YES") elif a == 7: if b == 5 and c == 5: pri...
from sys import stdin lis = stdin.readline().rstrip().split() a = int(lis[0]) b = int(lis[1]) c = int(lis[2]) if a == 5 or a == 7: if a == 5: if b == 5 and c ==7: print("YES") elif b == 7 and c ==5: print("YES") else: print("NO") elif a == 7: ...
[["+", 0, 57, 64, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 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], ["+", 8, 196, ...
5
118
arr = $stdin.gets.chomp.split(" ") arr.map! do |a_j| a_j.to_i end if arr[0].size == 7 and arr[1].size == 5 and arr[2] == 5 puts "YES" elsif arr[0].size == 5 and arr[1].size == 7 and arr[2] == 5 puts "YES" elsif arr[0].size == 5 and arr[1].size == 5 and arr[2] == 7 puts "YES" else puts "NO" end
arr = $stdin.gets.chomp.split(" ") arr.map! do |a_j| a_j.to_i end if arr[0] ==7 and arr[1] == 5 and arr[2] == 5 puts "YES" elsif arr[0] == 5 and arr[1] == 7 and arr[2] == 5 puts "YES" elsif arr[0] == 5 and arr[1] == 5 and arr[2] == 7 puts "YES" else puts "NO" end
[["-", 15, 738, 31, 738, 31, 738, 31, 652, 17, 131], ["-", 15, 738, 31, 738, 31, 738, 31, 652, 735, 22], ["-", 15, 738, 31, 738, 12, 738, 31, 652, 17, 131], ["-", 15, 738, 31, 738, 12, 738, 31, 652, 735, 22]]
4
118
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (a == 5 || a == 7) { if (b == 5 || b == 7) { if ((a + b + c) == 17) { cout << "YES" << endl; } } } cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (a == 5 || a == 7) { if (b == 5 || b == 7) { if (c == 5 || c == 7) { if ((a + b + c) == 17) { cout << "YES" << endl; return 0; } } } } cout << "NO" << endl; r...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16,...
1
85
a, b, c =input().split() n = [a, b, c] c5 = 0 c7 = 0 for i in n: if i == 5: c5 += 1 if i == 7: c7 += 1 if c5 == 2 and c7 == 1: print("YES") else: print("NO")
a, b, c =list(map(int, input().split())) # print (a, b, c) n = [a, b, c] c5 = 0 c7 = 0 for i in n: if i == 5: c5 += 1 if i == 7: c7 += 1 if c5 == 2 and c7 == 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, 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, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 12, 652...
5
72
#include <iostream> using namespace std; int main() { int A, B, C; cout << "enter 3 number" << endl; cin >> A >> B >> C; if ((A == 5 && B == 5 && C == 7) || (A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5)) cout << "Yas" << endl; else cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if ((A == 5 && B == 5 && C == 7) || (A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5)) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 64, 1, 0, 16, 31, 16, ...
1
99
# -*- coding: utf-8 -*- """ Created on Wed Sep 18 13:12:09 2019 @author: reimu """ a = map(int, input().split()) if a.count(5) == 2 and a.count(7) == 1: print('YES') else: print('NO')
a = list(map(int, input().split())) if a.count(5) == 2 and a.count(7) == 1: print('YES') else: print('NO')
[["-", 36, 36, 0, 656, 0, 1, 0, 557, 0, 654], ["-", 36, 36, 0, 656, 0, 1, 0, 557, 0, 6], ["-", 36, 36, 0, 656, 0, 1, 0, 557, 0, 655], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
51
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0); ios::sync_with_stdio(false); // code vector<int> haiku(3), mihon = {5, 5, 7}; rep(i, 3) cin >> haiku.at(i); sort(all(haiku)); if (haiku == mi...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0); ios::sync_with_stdio(false); // start vector<int> iroha1(3), iroha2 = {5, 5, 7}; rep(i, 3) cin >> iroha1.at(i); sort(all(iroha1)); if (iroha1...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 1, 0, 16, 12, 2, 63, 118, 28, 22], ["+", 0, 1, 0, 16, 12, 2, 63, 118, 28, 22], ["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 3...
1
110
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 5) { if ((b == 7 && c == 5) || (b == 5 && c == 7)) cout << "YES"; } else if (a == 7) { if (b == 5 && c == 5) cout << "YES"; } else cout << "NO"; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 5) { if ((b == 7 && c == 5) || (b == 5 && c == 7)) cout << "YES"; else cout << "NO"; } else if (a == 7) { if (b == 5 && c == 5) cout << "YES"; else cout << "NO"; } else ...
[["+", 0, 57, 64, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 31, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 17, 151], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 57, 75, 76, 0, 1, 0, 35], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 57, 64, 9, 0,...
1
95
A,B,C=map(int,input().split()) hoge=set([A,B,C]) if hoge==set([5,7]): if A+B+C=17: print("YES") else: print("NO")
A,B,C=map(int,input().split()) hoge=set([A,B,C]) if hoge==set([5,7]): if A+B+C==17: print("YES") else: print("NO") else: print("NO")
[["-", 0, 57, 64, 196, 0, 57, 0, 42, 0, 32], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 64, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 64, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+",...
5
65
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; vector<int> vec = {a, b, c}; sort(vec.begin(), vec.end()); for (int i = 0; i < vec.size(); i++) { cout << vec.at(i) << endl; } if (vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7) { cout << "YES" << e...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; vector<int> vec = {a, b, c}; sort(vec.begin(), vec.end()); for (int i = 0; i < vec.size(); i++) ; if (vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7) { cout << "YES" << endl; } else { cout << "NO...
[["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 16, 31, 16, 12, 2, 63, 118, 28, 22], ["-", 0, 16, 31, 16, 12, 2, 63, 118, 17, 131], ["-", 0, 16, 31, 16, 12, 2, 63, 118, 119, 120], ["-", 0, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 0, 16,...
1
137
def X(A,B,C): if A == 5 or A == 7: if B == 5 or B == 7: if C == 5 or C == 7: if A + B + C == 19: return "YES" return "NO" A,B,C = int(input()) print(X(A,B,C))
def X(A,B,C): if A == 5 or A == 7: if B == 5 or B == 7: if C == 5 or C == 7: if A + B + C == 17: return "YES" return "NO" A,B,C = map(int, input().split()) print(X(A,B,C))
[["-", 0, 57, 64, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 0, 612], ["-", 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], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ...
5
77
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long double ld; typedef long long int ll; ty...
#include <algorithm> #include <bitset> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long double ld; typedef long long int ll; ty...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 31, 16, 31, 16, 31, 2, 63, 118, 17, 131], ["-", 31, 16, 31, 16, 31, 2, 63, 118, 119, 120], ["-", 31, 16, 31, 16, 31, 2, 3, 4, 0, 24], ["-", 31, 16, 31, 16, 31, 2, 3, 4, 0, 25], ["-", 31, 16, 12, 16, 31, 2, 63, 118, 17, 131], ["-"...
1
401
i = list(map(int, input().split())) countFive = i.count(5) countSeven = i.count(7) print(i) print(countFive) print(countSeven) if countFive == 2 and countSeven == 1 : print("YES") else : print("NO")
i = list(map(int, input().split())) countFive = i.count(5) countSeven = i.count(7) if countFive == 2 and countSeven == 1 : 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
68
a,b,c= gets.split.map(&:to_i) nums = [a, b, c] nums.sort if nums = [7, 5, 5] puts "YES" else puts "NO" end
a,b,c= gets.split.map(&:to_i) nums = [a, b, c] nums = nums.sort if nums == [5, 5, 7] puts "YES" else puts "NO" end
[["+", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 486, 22], ["-", 36, 36, 0, 493, 0, 121, 15, 662, 0, 32], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 60], ["-", 0, 493, 0, 121, 15, 662, 12, 516, 0, 612], ["-", 0, 493, 0, 121, 15, 662, 12, 516, 0, 21], ["+", 0, 493, 0, 121, 15, 738, 1...
4
47
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; vector<int> N(3); for (int i = 0; i < 3; i++) { cin >> N.at(i); } sort(N.begin(), N.end()); if (N[0] == 5 && N[1] == 5 && N[2] == 7) cout << "YES" << endl; else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> N(3); for (int i = 0; i < 3; i++) { cin >> N.at(i); } sort(N.begin(), N.end()); if (N[0] == 5 && N[1] == 5 && N[2] == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0,...
1
118
package a042; class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int[] oto = new int[3]; //入力を数値に変換 for (int i = 0; i < args.length; i++) { oto[i] = Integer.parseInt(args[i]); } if (oto[0] != 5) { int toriaezu = oto[1]; oto[1] = oto[0]; oto...
import java.util.*; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ //入力を数値に変換 Scanner sc = new Scanner(System.in); int oto[] = new int[3]; for (int i = 0; i < 3; i++) { oto[i] = sc.nextInt(); } if (oto[0] != 5) { int toriaezu = oto[1]; ...
[["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 483], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 454, 0, 487], ["+", 36, 36, 0, 493, 0, 454, 0, 522, 345, 22], ["+", 36, 36, 0, 493, 0, 454, 0, 522, 0, 131], ["+", 36, 36, 0, 493, 0, 454, 0, 522, 141, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 454...
3
187
S=input() a, b, c = (int(i) for i in S.split()) d=(a+b+c)/17 e=(max(a,b)-2+max(a,c)+max(b,c))/17 if(d==1 and e==1): print("YES") else: print("NO")
a, b, c = (int(i) for i in input().split()) d=(a+b+c)/17 e=(max(a,b)-2+max(a,c)+max(b,c))/17 if(d==1 and e==1): print("YES") else: print("NO")
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 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], ["-", 12, 668, 0, 659, 12, 652, 63, 319, 500, 22], ["+", 0, 659, 12, 652, 63, 319, 500, 652, 63, 2...
5
89
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define SORT(i) sort((i).begin(), (i).end()) constexpr int INF = 2000000000; constexpr int mod = 1000000007; int main() { int a, b, c; cout << (a + b + c...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define SORT(i) sort((i).begin(), (i).end()) constexpr int INF = 2000000000; constexpr int mod = 1000000007; int main() { int a, b, c; cin >> a >> b >> c...
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
88
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == 5 && B == 5 && C == 7) { cout << "YES" << endl; } if (A == 5 && B == 7 && C == 5) { cout << "YES" << endl; } if (A == 7 && B == 5 && C == 5) { cout << "YES" << endl; } else { cout << "NO"...
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if (A == 5 && B == 5 && C == 7) cout << "YES" << endl; else { if (A == 5 && B == 7 && C == 5) cout << "YES" << endl; else { if (A == 7 && B == 5 && C == 5) cout << "YES" << endl; else ...
[["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 9, 0, ...
1
110
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a == 5 && b == 7) && c == 5) { cout << "YES" << endl; } if ((a == 5 && b == 5) && c == 7) { cout << "YES" << endl; } if ((a == 7 && b == 5) && c == 5) { cout << "YES" << endl; } else { cout << "NO...
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a == 5 && b == 7) && c == 5) { cout << "YES" << endl; return 0; } if ((a == 5 && b == 5) && c == 7) { cout << "YES" << endl; return 0; } if ((a == 7 && b == 5) && c == 5) { cout << "YES" << endl...
[["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]]
1
119
a, b, c = map(int, input().split()) # まず長さが7の文節があるか確認 if (a == 7 b == 5 c == 5)or(a == 5 b == 7 c == 5)or(a==5 b==5 c==7): print("YES") else: print("NO")
a, b, c = map(int, input().split()) if (a == 7 and b ==5 and c == 5)or(a == 5 and b == 7 and c == 5)or(a==5 and b==5 and c==7): print("YES") else: print("NO")
[["+", 31, 679, 31, 23, 0, 679, 31, 679, 17, 355], ["+", 15, 679, 31, 679, 31, 23, 0, 679, 17, 355], ["+", 31, 679, 12, 23, 0, 679, 31, 679, 17, 355], ["+", 15, 679, 31, 679, 12, 23, 0, 679, 17, 355], ["+", 15, 679, 12, 23, 0, 679, 31, 679, 17, 355], ["+", 0, 57, 15, 679, 12, 23, 0, 679, 17, 355]]
5
70
#include <algorithm> #include <iostream> using namespace std; int main() { int a[3]; for (int i = 0; i < 3; i++) cin >> a[i]; bool ok = false; sort(a, a + 3); if (a[0] == a[1] == 5 && a[2] == 7) ok = true; cout << (ok) ? ("YES") : ("NO"); cout << endl; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int a[3]; for (int i = 0; i < 3; i++) cin >> a[i]; bool ok = false; sort(a, a + 3); if (a[0] == 5 && a[1] == 5 && a[2] == 7) ok = true; if (ok) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 1, 0, 41, 15, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 41, 15, 16, 17, 151], ["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["-", 0, 14, 8, 9, 0, 1, 0, 41, 0, 101], ["-", 8, 9, 0, 1, 0, 41, 64, 23, 0, 24], ["+", 0, 57, 64...
1
105
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); int a, b, c; cin >> a >> b >> c; if (a == 5 || b == 7 || c == 5) { cout << "Yes"; } else if (a == 7 || b == 5 || c == 5) { cout << "Yes"; } else if (a == 5 || b == 5 || c == 7) { cout << "Yes"; } else ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); int a, b, c; cin >> a >> b >> c; if (a == 5 && b == 7 && c == 5) { cout << "YES"; } else if (a == 7 && b == 5 && c == 5) { cout << "YES"; } else if (a == 5 && b == 5 && c == 7) { cout << "YES"; } else ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+",...
1
112
<?php fscanf(STDIN, "%d %d %d",$a,$b,$c); if(($a+$b+$c) === 17 && $a === 5 ||7 && $b === 5 ||7 && $c === 5 ||7 ){ echo 'YES'; }else { echo 'NO'; }
<?php fscanf(STDIN, "%d %d %d",$a,$b,$c); if(($a+$b+$c === 17) && ($a === 5 ||7) && ($b === 5 ||7) && ($c === 5 ||7) ){ echo 'YES'; }else { echo 'NO'; }
[["-", 31, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 12, 23, 0, 25], ["+", 15, 23, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 15, 23, 0, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 57, 15, 23, 0, 16, 12, 23, 0, 24], ["+"...
6
70
#include <iostream> using namespace std; int main() { int a, b, c; if ((a == 5 && b == 5 && c == 7) || (a == 5 && b == 7 && c == 5) || (a == 7 && b == 5 && c == 5)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((a == 5 && b == 5 && c == 7) || (a == 5 && b == 7 && c == 5) || (a == 7 && b == 5 && c == 5)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
87
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a; for (int i = 0; i < 3; i += 1) { cin >> a[i]; } sort(a.begin(), a.end()); if (a[1] == 5 && a[2] == 5 && a[3] == 7) { cout << "YES" << endl; } else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> a(3); for (int i = 0; i < 3; i += 1) { cin >> a[i]; } sort(a.begin(), a.end()); if (a[0] == 5 && a[1] == 5 && a[2] == 7) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25], ["-", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 16, 31, 16, 31, 69, 341, 342, 0, 13], ["-", 31, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 16, 12, 16, 31, 69, 341, 342, 0, 13], [...
1
99
haiku = [5,5,7] a = input().split(" ") a = sorted(a) if haiku == a: print("YES") else: print("NO")
haiku = [5,5,7] a = list(map(int, input().split(" "))) a = sorted(a) if haiku == a: 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, 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, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 12, 652...
5
46
A,B,C=map(int, input().split()) x=0 if A==5: x+=1 if B==5: x+=1 if C==5: x+=1 if A==7: x+=1 if B==7: x+=1 if C==7: x+=1 if x==3: print("YES") else: print("NO")
A,B,C=map(int, input().split()) x=0 y=0 if A==5: x+=1 if B==5: x+=1 if C==5: x+=1 if A==7: y+=1 if B==7: y+=1 if C==7: y+=1 if x==2 and y==1: print("YES") else: print("NO")
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612],...
5
88
data = input() flag1 = 0 flag2 = 0 for i in range(3): if data[i] = '5': flag1 += 1 elif data[i] = '7': flag2 += 1 if flag1 == 1 and flag2 == 2: print('YES') else: print('NO')
data = input().split() flag1 = 0 flag2 = 0 for i in range(3): if data[i] == '5': flag1 += 1 elif data[i] == '7': flag2 += 1 if flag1 == 2 and flag2 == 1: print('YES') else: print('NO')
[["+", 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], ["-", 0, 7, 8, 196, 0, 57, 0, 42, 0, 32], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["-", 8, 196, 0, 57, 75, 665, 0, 42, 0, 32], ["+",...
5
68
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ct(string) cout << string << endl int main() { int sichi = 0, go = 0; string s; rep(i, 3) { cin >> s; if (s.size() == 5) go++...
#include <algorithm> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ct(string) cout << string << endl int main() { int sichi = 0, go = 0; int s; rep(i, 3) { cin >> s; if (s == 5) go++; if (...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 15, 339, 51, 16, 31, 2, 63, 118, 17, 131], ["-", 15, 339, 51, 16, 31, 2, 63, 118, 119, 120], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25]]
1
110
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; vector<int> ans = {0, 0, 0}; ans[0] = A; ans[1] = B; ans[2] = C; sort(ans.begin(), ans.end()); if (ans[0] == 5 && ans[1] == 5 && ans[2] == 7) { cout << "YES"; return 0; } cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; vector<int> ans = {0, 0, 0}; ans[0] = A; ans[1] = B; ans[2] = C; sort(ans.begin(), ans.end()); if (ans[0] == 5 && ans[1] == 5 && ans[2] == 7) { cout << "YES"; return 0; } cout << "NO"; }
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
109
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define ALL(a) a.begin(), a.end() #define RALL(a) a.rbegin(), a.rend() using namespace std; using ll = long long; const ll MOD = 1000000007; const ll INF = MOD * MOD; int main() { int a, b, c; cin >> a >> b >> c; if (a == 5 && b == 7 && c...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define ALL(a) a.begin(), a.end() #define RALL(a) a.rbegin(), a.rend() using namespace std; using ll = long long; const ll MOD = 1000000007; const ll INF = MOD * MOD; int main() { int a, b, c; cin >> a >> b >> c; if (a + b + c == 17) ...
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 60], ["-", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 72], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 60], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, ...
1
98
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, x) for (int i = 0; i < x; i++) #define re(i, x, y) fo...
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, x) for (int i = 0; i < x; i++) #define re(i, x, y) fo...
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
166
a, b, c = input().split(' ') cnt5 = 0 cnt7 = 0 for num in [a, b, c]: if num == 5: cnt5 += 1 if num == 7: cnt7 += 1 if cnt5 == 2 and cnt7 == 1: print('YES') else: print('NO')
a, b, c = [int(s) for s in input().split(' ')] cnt5 = 0 cnt7 = 0 for num in [a, b, c]: if num == 5: cnt5 += 1 if num == 7: cnt7 += 1 if cnt5 == 2 and cnt7 == 1: print('YES') else: print('NO')
[["+", 0, 656, 0, 1, 0, 662, 12, 658, 0, 70], ["+", 0, 1, 0, 662, 12, 658, 8, 652, 63, 22], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 25], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 0, 88], ["+", 0, 1, 0, 662, 12, 658, 0, 659, 31, 22], ["...
5
72
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int fiv = 0; int sev = 0; //初期値設定 for (int i = 0; i < 3; i++) { int num = sc.nextInt(); //入力値 switch (num) { // case 5: fiv++; break...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int fiv = 0; int sev = 0; //初期値設定 for (int i = 0; i < 3; i++) { int num = Integer.parseInt(sc.next()); //入力値 switch (num) { // case 5:...
[["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 0, 131], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 0, 503, 49, 200, 51, 492, 3, 4, 0, 24], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 49, 200, 51, 492, 3, 4, 0, 492, 141, 22], ["+", 51, 492, 3, 4, 0, 49...
3
132
#include <iostream> using namespace std; int main() { int A, B, C; if ((A == 5 and B == 7 and C == 5) or (A == 5 and C == 7 and B == 5) or (B == 5 and A == 7 and C == 5) or (B == 5 and C == 7 and A == 5)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; if ((A == 5 and B == 7 and C == 5) or (A == 5 and C == 7 and B == 5) or (B == 5 and A == 7 and C == 5) or (B == 5 and C == 7 and A == 5)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0;...
[["+", 0, 1, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 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...
1
101
#include <algorithm> #include <fstream> #include <iostream> #include <map> #include <vector> using namespace std; int main(int argc, const char *argv[]) { std::ifstream in("input.txt"); std::cin.rdbuf(in.rdbuf()); int a, b, c; cin >> a >> b >> c; vector<int> vec{a, b, c}; sort(vec.begin(), vec.end()); ...
#include <algorithm> #include <fstream> #include <iostream> #include <map> #include <vector> using namespace std; int main(int argc, const char *argv[]) { int a, b, c; cin >> a >> b >> c; vector<int> vec{a, b, c}; sort(vec.begin(), vec.end()); if (vec[0] == 5 && vec[1] == 5 && vec[2] == 7) cout << "YES...
[["-", 0, 14, 8, 9, 0, 43, 39, 343, 345, 348], ["-", 0, 14, 8, 9, 0, 43, 39, 343, 0, 349], ["-", 0, 14, 8, 9, 0, 43, 39, 343, 141, 78], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["-", 0, 43, 49, 50, 51, 4, 0, 5, 0, 62], ["-", 0, 43, 49, 50, 51, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 4...
1
138
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << (a * b * c == 175 ? "Yes" : "No") << endl; }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << (a * b * c == 175 ? "YES" : "NO") << endl; }
[["-", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["-", 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
49
// Keep working hard :) #include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout...
// Keep working hard :) #include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout...
[["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["-", 36, 36, 0, 30, 0, 14, 49, 53, 49, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 0, 30, 0, 14, 49, 53, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 36, 36, 0, 30, 0, 14, 8, 9, 0, 46], ["+", 0, 30, 0, 1...
1
117
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 5) { if (max(b, c) == 7 && min(b, c) == 5) { cout << "YES" << endl; } else { cout << "NO" << endl; } } if (a == 7) if (b == 5 && c == 5) { cout << "YES" << endl; } else {...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == 5) { if (max(b, c) == 7 && min(b, c) == 5) { cout << "YES" << endl; } else { cout << "NO" << endl; } } if (a == 7) if (b == 5 && c == 5) { cout << "YES" << endl; } else {...
[["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", ...
1
124
#include <bits/stdc++.h> #define ll long long #define INIT \ std::ios::sync_with_stdio(false); \ std::cin.tie(0); #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define d...
#include <bits/stdc++.h> #define ll long long #define INIT \ std::ios::sync_with_stdio(false); \ std::cin.tie(0); #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define d...
[["-", 12, 23, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 12, 23, 0, 16, 31, 16, 12, 16, 17, 60], ["-", 12, 23, 0, 16, 31, 16, 12, 16, 12, 13], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 106], ["-", 31, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 12, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 16, 12, 16, 12, 1...
1
129