File size: 3,213 Bytes
7ab4270 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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 main()`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
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
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
c1[0]=a,c2[0]=b;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
for(int i=1; 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
c1[i]=c1[i-1]-da;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`3`0`0`3`2`0
c2[i]=c2[i-1]-db;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`3`0`0`3`2`0
bool flag=false;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`1`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
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`1
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
if(c1[i]+c2[j]==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`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`2`0
flag=true;`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`0`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) break;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
if(flag){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`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
cout << "YES" << endl;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`3`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
cout << "NO" << endl;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`3`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`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
|