We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132739a commit 99216efCopy full SHA for 99216ef
Codeshef/CATSDOGS.cpp
@@ -0,0 +1,35 @@
1
+#include <stdio.h>
2
+
3
+using namespace std;
4
5
+int main()
6
+{
7
+ int T;
8
+ scanf("%d",&T);
9
+ while(T--){
10
+ long long int C, D, L;
11
+ scanf("%lld",&C);
12
+ scanf("%lld",&D);
13
+ scanf("%lld",&L);
14
+ if(L%4==0){
15
+ if((L/4)<=(C+D)){
16
+ if(C<=(2*D)){
17
+ if((L/4)>=D){
18
+ printf("%s\n","yes");
19
+ }
20
+ else printf("%s\n","no");
21
22
23
+ else if(C>(2*D)){
24
+ if((L/4)>=(C-D)){
25
26
27
28
29
30
31
32
33
34
+ return 0;
35
+}
0 commit comments