-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLOSTWKND.cpp
63 lines (46 loc) · 947 Bytes
/
LOSTWKND.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// Created by Sagar Pawar on 30/05/20.
//
/**
Problem: LOSTWKND.cpp
Algorithm:
Time Complexity:
Learning:
Tags:
**/
#include <bits/stdc++.h>
#define loop(i, s, e) for(int i=s; i<e; i++)
#define ll long long
#define ui unsigned int
#define MAX_INT 2147483647
using namespace std;
int main() {
#ifndef ONLINE_JUDGE
char *testFile = (char *) "/Users/sagarpawar/CLionProjects/ccdsap/LTIME84B/test/LOSTWKND.txt";
freopen(testFile, "r", stdin);
#endif
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t = 1;
cin >> t;
while (t--) {
int n;
int sum = 0;
loop(i, 0, 5){
cin >> n;
sum += n;
}
int p;
cin >> p;
sum = sum * p;
if( ((float)sum / 5) <= 24 ){
cout << "No";
}
else{
cout << "Yes";
}
cout << "\n";
}
return 0;
}