File size: 4,285 Bytes
e0b2a67 |
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 |
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
int x, t, a, b, da, db;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`6`0`1`7`0`0`0`0`0`0`0`0`0
int flag;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
while(scanf("%d%d%d%d%d%d", &x, &t, &a, &b, &da, &db) != EOF)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`6`2`1`1`0`0`1`0`0`1`0`7`0`7`6`0`1`1`7`0`8`0`0
int tmp_a, tmp_b;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
flag = 0;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
if(x == 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
printf("YES\n");`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
continue;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
for(int i = 0; i < t; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
tmp_a = a - i * da;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
for(int j = 0; j < t; j++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
tmp_b = b - j * db;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
if(tmp_a + tmp_b == x)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
printf("YES\n");`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
flag = 1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
break;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
if(tmp_a + tmp_b < x)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`1
printf("NO\n");`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
flag = 1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
break;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
if(flag)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
break;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
if(tmp_a + tmp_b > x)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`1
printf("NO\n");`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|