Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- train/10256695.cpp.csv +9 -0
- train/10256816.cpp.csv +23 -0
- train/10257437.cpp.csv +24 -0
- train/10257755.cpp.csv +24 -0
- train/10258190.cpp.csv +36 -0
- train/10258785.cpp.csv +15 -0
- train/10259244.cpp.csv +26 -0
- train/13854978.cpp.csv +11 -0
- train/13856560.cpp.csv +17 -0
- train/13856925.cpp.csv +12 -0
- train/13857007.cpp.csv +32 -0
- train/13857353.cpp.csv +30 -0
- train/13857567.cpp.csv +28 -0
- train/13858256.cpp.csv +13 -0
- train/13858361.cpp.csv +16 -0
- train/13858749.cpp.csv +16 -0
- train/13858750.cpp.csv +16 -0
- train/13860530.cpp.csv +23 -0
- train/13860780.cpp.csv +18 -0
- train/13860965.cpp.csv +28 -0
- train/13861523.cpp.csv +15 -0
- train/13861879.cpp.csv +22 -0
- train/13861909.cpp.csv +11 -0
- train/16114912.cpp.csv +26 -0
- train/16131585.cpp.csv +20 -0
- train/16131623.cpp.csv +22 -0
- train/18962456.cpp.csv +19 -0
- train/18962653.cpp.csv +12 -0
- train/18962746.cpp.csv +13 -0
- train/18963021.cpp.csv +15 -0
- train/18963174.cpp.csv +20 -0
- train/18963236.cpp.csv +20 -0
- train/18963409.cpp.csv +17 -0
- train/18963433.cpp.csv +11 -0
- train/18963535.cpp.csv +14 -0
- train/18963551.cpp.csv +17 -0
- train/18963631.cpp.csv +17 -0
- train/18964018.cpp.csv +22 -0
- train/18964332.cpp.csv +12 -0
- train/18964456.cpp.csv +21 -0
- train/18964882.cpp.csv +17 -0
- train/18965283.cpp.csv +24 -0
- train/18966659.cpp.csv +10 -0
- train/18966688.cpp.csv +25 -0
- train/18967184.cpp.csv +8 -0
- train/18967446.cpp.csv +22 -0
- train/18967738.cpp.csv +12 -0
- train/18967884.cpp.csv +21 -0
- train/18968476.cpp.csv +13 -0
- train/18968807.cpp.csv +53 -0
train/10256695.cpp.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
inline void setIO(string a){`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
|
| 3 |
+
string in=a+".in",out=a+".out";`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`0`2`0`0`0`0`0`0`2`4`1`7`0`0`0`0`0`0`0`0`0
|
| 4 |
+
freopen(in.c_str(),"r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`0`2`0`0`0`0`0`0`4`6`0`10`0`0`2`0`0`0`0`0`0
|
| 5 |
+
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`1
|
| 6 |
+
scanf("%d%d",&n,&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 7 |
+
For(i,1,n) f[i]=1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 8 |
+
For(i,1,n) scanf("%d%*lf",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`2`2`0`0`1`0`0`0`1`1`5`1`7`0`0`0`2`1`0`3`1`0
|
| 9 |
+
For(i,1,n) For(j,1,i-1) if(a[j]<=a[i] && f[j]+1>f[i]) f[i]=f[j]+1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`2`1`1`0`1`0`0`0`1`1`6`1`8`1`0`1`1`2`0`3`1`0
|
train/10256816.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
void ini()`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
|
| 3 |
+
for(int i=1;i<=110;i++) fa[i]=i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`2`2`0`0`1`0`0`0`1`1`5`1`7`0`0`0`2`1`0`3`1`0
|
| 4 |
+
int getf(int v)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`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
|
| 5 |
+
if(v==fa[v]) return v;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
|
| 6 |
+
return fa[v]=getf(fa[v]);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`1`1`1`0`0`1`2`0
|
| 7 |
+
void Merge(int x,int y)`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
|
| 8 |
+
int t1=getf(x);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`1`1`0`0`0`0`0`0
|
| 9 |
+
int t2=getf(y);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`1`1`0`0`0`0`0`0
|
| 10 |
+
if(t1!=t2) fa[t2]=t1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`1`0
|
| 11 |
+
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
|
| 12 |
+
ini();`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`1`0`1`0`1`1`0`0`0`0`0`0
|
| 13 |
+
int ans=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 14 |
+
scanf("%d%d",&n,&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`1
|
| 15 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 16 |
+
int k;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 17 |
+
scanf("%d",&k);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 18 |
+
if(k==0) ans++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`1`0`2`0`1
|
| 19 |
+
for(int i=1;i<=k;i++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`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
|
| 20 |
+
scanf("%d",&tmp[i]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 21 |
+
cnt[tmp[i]]++;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`1`0`1`2`0
|
| 22 |
+
if(i>1) Merge(tmp[i],tmp[i-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`2`2`0`1`0`0`0`0`0`0`6`0`6`0`1`1`2`0`0`2`2`0
|
| 23 |
+
int t=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
train/10257437.cpp.csv
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int bin(int l, int r, int key){`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if(l>r) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
int q = (l+r)>>1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 5 |
+
if(p[q].first>key) return bin(l, q-1, key);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`1`1`0`1`0`0`0`0`0`0`7`0`7`0`1`1`2`0`0`2`1`0
|
| 6 |
+
else if(p[q].first<key) return bin(q+1, r, key);`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`6`1`1`0`1`0`0`0`0`0`0`7`0`7`0`1`1`2`0`0`2`1`0
|
| 7 |
+
else return p[q].second;`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 8 |
+
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
|
| 9 |
+
int n;`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
|
| 10 |
+
scanf("%d", &n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 11 |
+
FOR(i, 1, n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`1
|
| 12 |
+
scanf("%d", &p[i].first);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`1`0`1`0`0`0`0`0`0`0`5`0`5`1`0`1`0`2`0`2`1`1
|
| 13 |
+
p[i].second = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
sort(p+1, p+1+n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`1`3`0`0`3`0`0
|
| 15 |
+
int m;`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
|
| 16 |
+
scanf("%d", &m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 17 |
+
int b;`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
|
| 18 |
+
REP(i, m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`3`3`0`0`1`0`0`0`1`3`1`3`7`0`0`0`1`0`0`1`0`0
|
| 19 |
+
scanf("%d", &b);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`0`1`0`0`0`0`0`0`0`4`0`4`1`0`1`0`2`0`2`0`0
|
| 20 |
+
int q = bin(1, n, b);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`1`1`0`0`0`0`0`0`0`1`3`1`5`0`1`1`0`0`0`0`0`1
|
| 21 |
+
k1 += q;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`1
|
| 22 |
+
k2 += n - q + 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`0
|
| 23 |
+
printf("%d %d\n", k1, k2);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 24 |
+
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
|
train/10257755.cpp.csv
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int rank[500] ;`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
|
| 4 |
+
rank['6'] = 1 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 5 |
+
rank['7'] = 2 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 6 |
+
rank['8'] = 3 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 7 |
+
rank['9'] = 4 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 8 |
+
rank['T'] = 5 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 9 |
+
rank['J'] = 6 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 10 |
+
rank['Q'] = 7 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 11 |
+
rank['K'] = 8 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 12 |
+
rank['A'] = 9 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 13 |
+
string trumph , first , second ;`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`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 14 |
+
cin >> trumph ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 15 |
+
cin >> first ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 16 |
+
cin >> second ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 17 |
+
if(first[1] == trumph[0]){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
|
| 18 |
+
printf("YES") ;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
| 19 |
+
if(first[1] == second[1]){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
|
| 20 |
+
if(rank[first[0]] > rank[second[0]]){`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`4`2`2`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
|
| 21 |
+
printf("YES") ;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 22 |
+
printf("NO") ;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
printf("NO") ;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
|
| 24 |
+
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
|
train/10258190.cpp.csv
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int find_set(int p)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`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
|
| 3 |
+
if(uset[p] < 0) return p;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 4 |
+
return uset[p] = find_set(uset[p]);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`1`1`1`0`0`1`2`0
|
| 5 |
+
void join(int p, int q)`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
|
| 6 |
+
p = find_set(p);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
|
| 7 |
+
q = find_set(q);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
|
| 8 |
+
if(p == q) return;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 9 |
+
uset[p] = q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 10 |
+
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
|
| 11 |
+
while(~scanf("%d%d", &n, &m))`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`0`1`0`0`1`0`0`1`0`3`0`3`2`0`1`0`3`0`3`0`0
|
| 12 |
+
int ans = 0;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 13 |
+
memset(uset, -1, sizeof(uset));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`1`0`1`0`0
|
| 14 |
+
memset(mp, 0, sizeof(mp));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 15 |
+
memset(use, 0, sizeof(use));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 16 |
+
for(int i=1; i<=n; ++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
|
| 17 |
+
scanf("%d", &mp[i][0]);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`2`1`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`2`0
|
| 18 |
+
if(0 == mp[i][0])`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`2`0
|
| 19 |
+
++ans;`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`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 20 |
+
for(int j=1; j<=mp[i][0]; ++j)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`2`0
|
| 21 |
+
int x;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 22 |
+
scanf("%d", &x);`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 23 |
+
mp[i][x] = 1;`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`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`2`0
|
| 24 |
+
for(int i=1; i<n; ++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
|
| 25 |
+
for(int j=i+1; j<=n; ++j)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`0`0
|
| 26 |
+
for(int k=1; k<=m; ++k)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 27 |
+
if(1==mp[i][k] && 1==mp[j][k])`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`1`0`1`0`0`0`6`0`7`6`2`2`0`1`0`0`0`0`0`0`6`0`6`0`0`0`3`0`0`3`4`0
|
| 28 |
+
join(i, j);`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`1`0`1`0`0`0`6`0`7`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 29 |
+
for(int i=1; i<=n; ++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
|
| 30 |
+
if(0 == mp[i][0]) continue;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`2`0
|
| 31 |
+
int p = find_set(i);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`1`1`0`0`0`0`0`0
|
| 32 |
+
if(use[p]) continue;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 33 |
+
++ans;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 34 |
+
use[p] = 1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 35 |
+
printf("%d\n", ans-1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`0`0
|
| 36 |
+
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
|
train/10258785.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
llint taghsim(llint a,llint b){`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`1
|
| 3 |
+
if (b <= 0) return INF;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
return (a+b-1) / b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 5 |
+
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
|
| 6 |
+
ios_base::sync_with_stdio(0);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 7 |
+
llint ans = 0, co1, co2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 8 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 9 |
+
while (n--){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 10 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 11 |
+
co1 = cost + (t+m > T ? x*m: 0);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`7`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`0`5`0`0`5`0`0
|
| 12 |
+
co2 = cost * taghsim(m, T-t);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`5`0`0`0`0`0`0`0`0`0`0`6`0`6`0`1`1`3`0`0`3`0`0
|
| 13 |
+
ans += min(co1, co2);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 14 |
+
cout << ans << '\n';`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 15 |
+
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
|
train/10259244.cpp.csv
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
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
|
| 4 |
+
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
|
| 5 |
+
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
|
| 6 |
+
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
|
| 7 |
+
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
|
| 8 |
+
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
|
| 9 |
+
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
|
| 10 |
+
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
|
| 11 |
+
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
|
| 12 |
+
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
|
| 13 |
+
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
|
| 14 |
+
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
|
| 15 |
+
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
|
| 16 |
+
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
|
| 17 |
+
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
|
| 18 |
+
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
|
| 19 |
+
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
|
| 20 |
+
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
|
| 21 |
+
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
|
| 22 |
+
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
|
| 23 |
+
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
|
| 24 |
+
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
|
| 25 |
+
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
|
| 26 |
+
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
|
train/13854978.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
string s1;`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
|
| 4 |
+
int x;`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
|
| 5 |
+
cin>>x>>s1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 6 |
+
if(s1.find("L")>1000)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`2`1`1`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 7 |
+
cout<<s1.find("R")+1<<" "<<s1.rfind("R")+2;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`5`2`3`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`0`0
|
| 8 |
+
else if(s1.find("R")>1000)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`2`1`1`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 9 |
+
cout<<s1.find("L")+2<<" "<<s1.rfind("L");`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`4`1`3`0`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`0`1
|
| 10 |
+
cout<<s1.find("R")+1<<" "<<s1.rfind("R")+1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`5`2`3`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`0`0
|
| 11 |
+
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
|
train/13856560.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int ptr1=0,ptr2=2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
ll acc=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int n,d;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
scanf("%d %d",&n,&d);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 7 |
+
for(int i=0;i<n;++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
scanf("%d",&vec[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 9 |
+
while(ptr1<=ptr2&&ptr2<n){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`3`4`0`0`0`0`0`1`0`0`1`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 10 |
+
while(ptr2<n&&vec[ptr2]-vec[ptr1]<=d){`FunctionDecl,false;WhileStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`0`0`0`0`0`3`0`6`7`0`0`0`0`0`1`0`0`1`0`7`0`7`0`0`0`4`0`0`4`2`1
|
| 11 |
+
if(ptr2>ptr1){`FunctionDecl,false;WhileStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`1`0`0`0`4`0`7`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 12 |
+
acc+=ptr2-ptr1-1;`FunctionDecl,false;WhileStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`1`0`0`0`4`0`7`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`0
|
| 13 |
+
++ptr2;`FunctionDecl,false;WhileStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`0`0`0`0`0`3`0`6`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
|
| 14 |
+
--ptr2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 15 |
+
++ptr1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 16 |
+
if(ptr1>ptr2) ++ptr2;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`0`0
|
| 17 |
+
cout<<acc<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
train/13856925.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
for(int i = 0; i < n; i ++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 5 |
+
cin >> arr[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 6 |
+
sort(arr, arr + n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`1
|
| 7 |
+
long double ans = (long double)arr[0] * (long double)arr[0] * pi;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`2`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`2`0
|
| 8 |
+
for(int i = 2; i < n; i ++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
if(i % 2 == 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
|
| 10 |
+
ans += ((long double)arr[i] * (long double)arr[i] - (long double)arr[i - 1] * (long double)arr[i - 1]) * pi;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`10`2`2`0`0`0`0`0`0`0`0`10`0`10`0`0`0`6`0`1`7`4`0
|
| 11 |
+
cout << setprecision(4) << fixed << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`9`0`9`0`0`1`0`0`0`0`0`0
|
| 12 |
+
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
|
train/13857007.cpp.csv
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
inline string get_string() {char ch[1000000]; scanf("%s",ch); return ch; }`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`1`3`1`5`0`0`1`0`0`0`0`0`0
|
| 3 |
+
inline int get_Int() {int x ; scanf("%d",&x) ; return x ; }`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`1`3`1`5`1`0`1`0`1`0`1`0`0
|
| 4 |
+
inline string get_String() {string x ; cin >> x ; return x ;}`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`0`0`0`0`0`0
|
| 5 |
+
inline long long get_long() {long long x ; cin >> x ; return x;}`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`0`0`0`0`0`0
|
| 6 |
+
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
|
| 7 |
+
int matrix[3][3];`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
|
| 8 |
+
int row[3] , column[3];`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
for (int i = 0 ; i < 3 ; i ++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 10 |
+
for (int j = 0 ; j < 3 ; j ++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 11 |
+
scanf("%d",&matrix[i][j]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`0`1`0`0`0`0`0`0`0`4`0`4`1`0`1`0`1`0`1`2`0
|
| 12 |
+
for (int first = 1 ; first <= 1e5 ; first ++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`1`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 13 |
+
matrix[0][0] = first;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`2`0
|
| 14 |
+
int firstRow = matrix[0][1] + matrix[0][2] + first;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`4`4`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`4`0
|
| 15 |
+
matrix[1][1] = firstRow - matrix[1][0] - matrix[1][2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 16 |
+
matrix[2][2] = firstRow - matrix[2][0] - matrix[2][1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 17 |
+
int secondRow , thirdRow , secondColumn , thirdColumn;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`0
|
| 18 |
+
secondRow = matrix[1][0] + matrix[1][1] + matrix[1][2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 19 |
+
thirdRow = matrix[2][0] + matrix[2][1] + matrix[2][2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 20 |
+
secondColumn = matrix[0][1] + matrix[1][1] + matrix[2][1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 21 |
+
thirdColumn = matrix[0][2] + matrix[1][2] + matrix[2][2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 22 |
+
int arr[5] = {firstRow , secondRow , thirdRow , secondColumn , thirdColumn};`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`0`0`0`0`0`0`0
|
| 23 |
+
if ((secondRow <= matrix[1][0] + matrix[1][2]) || (thirdRow <= matrix[2][0] + matrix[2][1])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`8`6`8`8`0`1`0`0`0`0`0`0`6`0`6`0`0`0`7`0`0`7`8`1
|
| 24 |
+
|| (secondColumn <= matrix[0][1] + matrix[0][2]) || (thirdColumn <= matrix[0][2] + matrix[1][2]))`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`8`6`8`8`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`8`0
|
| 25 |
+
continue;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`8`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 26 |
+
sort(arr,arr+5);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`1`0`0`1`0`0
|
| 27 |
+
if (arr[0] == arr[4] && arr[0] > 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`3`4`4`0`1`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`3`1
|
| 28 |
+
for (int i = 0 ; i < 3 ; i++)`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 29 |
+
for (int j = 0 ; j < 3 ; j ++)`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`6`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 30 |
+
printf("%d ",matrix[i][j]);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`6`3`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`0`0`2`0
|
| 31 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 32 |
+
exit(0);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
train/13857353.cpp.csv
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int gcd(int a,int b) {return (b==0?a:gcd(b,a%b));}`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`1`5`1`1`0`0`0`0`0`0`0`0`6`0`6`0`1`1`2`0`0`2`0`0
|
| 3 |
+
int lcm(int a,int b) {return (a*(b/gcd(a,b)));}`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`1`1`2`0`0`2`0`0
|
| 4 |
+
int rightBinary(ll *arr,ll size,ll val) {`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`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
while(cnt>0) {`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`2`2`0`0`0`1`0`0`1`3`2`1`6`0`0`0`1`0`0`1`0`0
|
| 6 |
+
mid = low;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 7 |
+
mid += (cnt>>1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`0`0
|
| 8 |
+
if(val>arr[mid]) { // or: if (!comp(val,arr[mid]))`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`1`0`0`1`1`0
|
| 9 |
+
cnt-=(mid-low+1);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`0
|
| 10 |
+
low = mid+1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 11 |
+
else if(val == arr[mid]) {`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 12 |
+
return mid;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 13 |
+
cnt = mid-low;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 14 |
+
return low-1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 15 |
+
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
|
| 16 |
+
ios_base::sync_with_stdio(0);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 17 |
+
clock_t start = clock();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`5`1`3`9`0`0`1`0`0`0`0`0`0
|
| 18 |
+
cin >> n>>d;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`0`0`0`0`0`0`0
|
| 19 |
+
rep(i,n) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 20 |
+
cin>>arr[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`0`1`1`0`2`1`0
|
| 21 |
+
j=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`2`0`0`0`0`0`0`0`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 22 |
+
rep(i,n-2) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`1`0`0`0`1`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 23 |
+
for(;j<n && arr[j]<=search;j++) {`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`3`12`2`2`0`0`1`0`0`0`1`1`12`1`14`0`0`0`6`2`0`8`2`0
|
| 24 |
+
int ind = j-i-1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
|
| 25 |
+
ans+= ((ind)*(ind-1))/2;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`0
|
| 26 |
+
pr3(i,j,ans);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`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`0`0
|
| 27 |
+
cout<<ans;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 28 |
+
clock_t end = clock();`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`1`1`3`0`0`1`0`0`0`0`0`0
|
| 29 |
+
cout << "\nTime elapsed: " << (double) (end - start) / CLOCKS_PER_SEC << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`1`1`0`0`0`0`0`0`0`7`0`7`0`0`0`2`0`0`2`0`0
|
| 30 |
+
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
|
train/13857567.cpp.csv
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
long long a,b,c=1,d,e,x,count1=0,count2=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`8`0`1`9`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>a>>b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for (int i=0,y=b;i<a;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`2`4`1`7`0`0`0`1`1`0`2`0`0
|
| 6 |
+
x=y%10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 7 |
+
y=y/10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 8 |
+
if(x==4||x==7){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
|
| 9 |
+
continue;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 10 |
+
cout<<"NO";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 12 |
+
a=a/2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 13 |
+
for(int i=0;i<a;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 14 |
+
c=c*10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 15 |
+
d=b%c;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 16 |
+
e=(b-d)/c;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 17 |
+
for (int i=0;i<a;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 18 |
+
x=d%10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 19 |
+
d=d/10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 20 |
+
count1=count1+x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 21 |
+
for (int i=0;i<a;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 22 |
+
x=e%10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 23 |
+
e=e/10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 24 |
+
count2=count2+x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 25 |
+
if (count1==count2){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 26 |
+
cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 27 |
+
cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`1
|
| 28 |
+
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
|
train/13858256.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n, m, sum = 0, i = 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
while (sum < m)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 6 |
+
if (i % n == 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 7 |
+
sum += n;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 8 |
+
sum += i % n;`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`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`1`2`0`0
|
| 9 |
+
i++;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 10 |
+
if (sum > m)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
i = (i - 1) % n;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 12 |
+
sum -= i; `FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 13 |
+
cout << m - sum;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`1
|
train/13858361.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int index(char x,string rank){`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
|
| 3 |
+
for(int i=0;i<rank.size();i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 4 |
+
if(rank[i]==x){return i;} `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 5 |
+
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
|
| 6 |
+
string rank="6789TJQKA",suit="SHDC" ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`0`2`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
char s; cin>>s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`0`0`0`0`0`0
|
| 8 |
+
string w1,w2; cin>>w1>>w2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`2`5`1`8`0`0`0`0`0`0`0`0`0
|
| 9 |
+
if(w1[1] == w2[1]){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
|
| 10 |
+
if(index(w1[0] ,rank) > index(w2[0],rank)){cout<<"YES"<<endl; `FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`5`3`2`1`1`0`0`0`0`0`0`12`0`12`0`2`2`1`0`0`1`0`0
|
| 11 |
+
return 0;} `FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 12 |
+
if(w1[1]==s){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`1
|
| 13 |
+
cout<<"YES"<<endl; `FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 14 |
+
return 0; `FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 15 |
+
cout<<"NO"<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 16 |
+
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
|
train/13858749.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
ios_base::sync_with_stdio(0);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i=1; i<n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
a=1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`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
|
| 7 |
+
p=0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`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
|
| 8 |
+
for(int o=1; o<=n-2; o++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 9 |
+
a*=i;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
a%=n;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 11 |
+
if((a-1)%n==0){`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
|
| 12 |
+
p=1;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 13 |
+
break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`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
|
| 14 |
+
if(p==0){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`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`0
|
| 15 |
+
cout<<i<<endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`1
|
| 16 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/13858750.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
cin >> n >> d;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
for(int i = 0; i < n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 5 |
+
int a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
cin >> a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
g.push_back(a);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
int h=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 9 |
+
int cont = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int j=0;j<g.size();j++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
h=j+2;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 12 |
+
while(abs(g[h]-g[j])<=d && h<g.size()){`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`4`7`0`0`0`0`0`1`0`0`1`0`10`0`10`0`0`1`4`0`0`4`0`0
|
| 13 |
+
h++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 14 |
+
cont+=(h-1)-j-1;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`4`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`0
|
| 15 |
+
cout<<cont<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 16 |
+
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
|
train/13860530.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
long long res;`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
|
| 4 |
+
long long res2;`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
|
| 5 |
+
long long data;`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
|
| 6 |
+
long long dat1;`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
|
| 7 |
+
long long dat2;`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
|
| 8 |
+
vi a;`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
|
| 9 |
+
res=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 10 |
+
res2=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
scanf("%I64d %I64d ",&dat1,&dat2 );`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 12 |
+
a = vi(dat1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 13 |
+
for(int i=0;i<dat1;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 14 |
+
scanf("%I64d ",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`4`0`4`1`0`1`0`1`0`1`0`0
|
| 15 |
+
long long cant= 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 16 |
+
for(long long i = 0; i< dat1 - 1 ;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 17 |
+
while (cant < dat1 && a[cant] <= a[i]+dat2)`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`4`7`0`0`0`0`0`1`0`0`1`0`9`0`9`0`0`0`4`0`0`4`0`0
|
| 18 |
+
cant++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 19 |
+
cant--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 20 |
+
long long aux = cant - i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`0`1`0`0`1`0`0
|
| 21 |
+
res += aux * (aux-1)/2 ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`0
|
| 22 |
+
printf("%I64d ",(int)res);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`1
|
| 23 |
+
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
|
train/13860780.cpp.csv
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,m;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
string s[100];`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
|
| 5 |
+
scanf("%d%d",&n,&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 6 |
+
for(int i=0;i<n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 7 |
+
cin>>s[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 8 |
+
set<int> s1;`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
|
| 9 |
+
for(int j=0;j<m;j++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 10 |
+
char maxi='0';`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`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`0
|
| 11 |
+
for(int i=0;i<n;i++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`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
|
| 12 |
+
if(s[j][i]-maxi>0){`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`1`1
|
| 13 |
+
maxi=s[j][i];`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`1`0
|
| 14 |
+
for(int i=0;i<n;i++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`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
|
| 15 |
+
if(s[j][i]==maxi){`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`1`1
|
| 16 |
+
s1.insert(i+1);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 17 |
+
cout<<s1.size();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 18 |
+
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
|
train/13860965.cpp.csv
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n;`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
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
long long int x,y;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
cin>>x>>y;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if( y<n)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 8 |
+
cout<<"-1"<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 9 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if(x<=n)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`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
|
| 12 |
+
cout<<"1 ";`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 13 |
+
cout<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 14 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 15 |
+
bool f=0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 16 |
+
long long int p=x-(n-1);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 17 |
+
cout<<p<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`1
|
| 18 |
+
long long int ans=sqrt(p);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`1`0`0`0`0`0`0
|
| 19 |
+
if(ans*ans!=p)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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`0
|
| 20 |
+
ans++;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 21 |
+
if(n-1+ans<=y)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 22 |
+
f=1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 23 |
+
if(f)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
|
| 24 |
+
for(int i=1;i<=n-1;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 25 |
+
cout<<"1 ";`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 26 |
+
cout<<ans<<endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 27 |
+
cout<<"-1"<<endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
|
| 28 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`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
|
train/13861523.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n , m , q , num1 = 0 , num2 = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin >> n ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int arr[n+1] ;`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
|
| 6 |
+
for(int i = 0 ; i< n ; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 7 |
+
cin >> q ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
arr[q-1] = i ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`1`0
|
| 9 |
+
cin >> m ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int i = 0 ; i < m ; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
cin >> q ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 12 |
+
num1+= arr[q-1]+1 ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`1`0
|
| 13 |
+
num2+= n - arr[q-1] ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`1`3`1`0
|
| 14 |
+
cout << num1 << " " << num2 << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`1`0`0`0`0`0`0`0`8`0`8`0`0`0`0`0`0`0`0`0
|
| 15 |
+
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
|
train/13861879.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,r=0,l=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin>>n;char x;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
cin>>x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(x=='.'&&r==0&&l==0)continue;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`6`3`3`2`0`1`0`0`0`0`0`0`3`0`3`0`0`0`5`0`0`5`0`0
|
| 8 |
+
if((r==0&&x=='R')||(r==1&&x=='R'))`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`10`4`4`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`7`0`0`7`0`0
|
| 9 |
+
if(r==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 10 |
+
cout<<i+1<<" ";`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`2`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
|
| 11 |
+
r=1;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`10`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 12 |
+
l=-2;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`10`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`1`0`2`0`0
|
| 13 |
+
if((l==0&&x=='L')||(l==1&&x=='L'))`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`19`4`4`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`7`0`0`7`0`0
|
| 14 |
+
if(r==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`20`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 15 |
+
cout<<i+1<<" ";`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`20`2`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`1
|
| 16 |
+
l=1;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`19`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 17 |
+
r=-2;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`19`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`1`0`2`0`0
|
| 18 |
+
if(x!='.')`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`20`1`1`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 19 |
+
cout<<i;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`20`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 20 |
+
cout<<i+1;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`20`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 21 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`19`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 22 |
+
cout<<n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/13861909.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
char a[1000]={0};`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
while(gets(a))`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 5 |
+
int i,l;`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
|
| 6 |
+
l=strlen(a);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`1`1`0`0`1`0`0
|
| 7 |
+
for(i=l-1;i>=0;i--)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`2`2`0`0`1`0`0`0`1`0`4`0`4`0`0`0`3`1`0`4`0`0
|
| 8 |
+
if(isalpha(a[i]))`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 9 |
+
if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u'||a[i]=='A'||a[i]=='E'||a[i]=='I'||a[i]=='O'||a[i]=='U'||a[i]=='Y'||a[i]=='y')`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`26`24`12`0`0`1`0`0`0`0`0`0`24`0`24`0`0`0`23`0`0`23`12`0
|
| 10 |
+
printf("YES\n");`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`26`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 11 |
+
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`1
|
train/16114912.cpp.csv
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
long long n,m=1,i,x,c=0,b=0,k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`7`0`1`8`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>x;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 6 |
+
int a[n];`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
|
| 7 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 8 |
+
a[i]=(x/m%10);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`1`0
|
| 9 |
+
m*=10;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`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`0`0`1`1`0`0
|
| 10 |
+
if(a[i]!=7 && a[i]!=4)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`4`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
|
| 11 |
+
cout<<"NO";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
goto h;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 13 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 14 |
+
if(n%2!=0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
|
| 15 |
+
if(i<n/2)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 16 |
+
c=c+a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 17 |
+
else if(i>n/2)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
b=b+a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 19 |
+
if(i<n/2)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 20 |
+
c=c+a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 21 |
+
else if(i>=n/2)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 22 |
+
b=b+a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 23 |
+
if(b==c)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 24 |
+
cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 25 |
+
cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 26 |
+
h:;`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
|
train/16131585.cpp.csv
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int main(int argc, const char * argv[]) {`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`1
|
| 3 |
+
ios_base::sync_with_stdio(false);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 4 |
+
int n;`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
|
| 5 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int arr[n + 1];`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
|
| 7 |
+
for(int i =0; i<n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 8 |
+
cin >> arr[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 9 |
+
int mx = arr[0];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`1`1
|
| 10 |
+
int mn = arr[0];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`1`0
|
| 11 |
+
for(int i=0; i<n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 12 |
+
if(arr[i]> mx)mx = arr[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`2`0
|
| 13 |
+
if(arr[i]<mn)mn = arr[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`2`0
|
| 14 |
+
sort(arr, arr+ n );`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 15 |
+
int i=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 16 |
+
for(int j=mn, i=0; j<=mx + 1, i<n; i++, j++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`3`7`2`2`0`0`1`0`0`0`1`2`7`1`10`0`0`0`5`2`0`7`0`0
|
| 17 |
+
if(j != arr[i]){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 18 |
+
cout<<j<<endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
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
|
train/16131623.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
long long bs ( long long start , long long x , long long finish)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if (finish < start)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
return finish ;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
long long mid = finish + start ;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`0`1`0`0`1`0`0
|
| 6 |
+
mid /= 2 ;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
|
| 7 |
+
if (a[mid] == x )`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 8 |
+
return mid ;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 9 |
+
if (a[mid] > x )`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 10 |
+
finish = mid ;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
return bs(start,x,finish-1) ;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 12 |
+
return bs (mid+1 , x , finish) ;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 13 |
+
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
|
| 14 |
+
cin >> n >> d;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 15 |
+
for( long long i =0 ; i < n ; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 16 |
+
cin >> a[i] ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 17 |
+
for (long long i = 0 ; i<n-2 ; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 18 |
+
long long f = bs(0,a[i]+d,n-1) ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`2`2`0`0`0`0`0`0`0`1`5`1`7`0`1`1`2`0`0`2`1`0
|
| 19 |
+
if (a[f] > a[i]+ d )`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`2`0
|
| 20 |
+
f-- ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 21 |
+
s+= (long long )(f- i -1) * (long long )(f-i)/2 ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`5`0`1`6`0`1
|
| 22 |
+
cout << s ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/18962456.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
void arquivo(){`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
|
| 3 |
+
printf("ME TIRA DAQUI\n");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 4 |
+
freopen("in","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`3`1`2`0`0`0`0`0`0`1`2`0`3`0`0`1`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
scanf("%lld%lld",&n,&d);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 7 |
+
for(int i=0;i<n;i++) scanf("%lld",&v[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`2`1`1`0`1`0`0`0`1`1`6`1`8`1`0`1`1`2`0`3`1`0
|
| 8 |
+
int l = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 9 |
+
int r = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
while(l != n){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
if(abs(v[r]-v[l]) <= d && r < n){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`7`0`0`0`1`0`0`0`0`0`0`8`0`8`0`0`1`4`0`0`4`2`0
|
| 12 |
+
r++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 13 |
+
int x = r-1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`1`1`1`0`0`0`0`0`0`0`1`1`1`3`0`0`0`1`0`0`1`0`1
|
| 14 |
+
if(l+1 < x){`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`5`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 15 |
+
x -= l+1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`5`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`0`0
|
| 16 |
+
ans += ((x)*(x+1))/2;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`5`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`0
|
| 17 |
+
l++; `FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 18 |
+
printf("%lld\n",ans);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 19 |
+
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
|
train/18962653.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,maxsum=0,sum,p,m,a,b,c,d,e;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`10`0`1`11`0`0`0`0`0`0`0`0`1
|
| 4 |
+
string s,ans;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
for(int i=0;i<n;++i){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 7 |
+
cin>>s>>p>>m>>a>>b>>c>>d>>e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`9`0`0`0`0`0`0`0`0`0`0`17`0`17`0`0`0`0`0`0`0`0`0
|
| 8 |
+
sum=p*100-m*50+a+b+c+d+e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`9`0`0`9`0`0
|
| 9 |
+
if(sum>maxsum){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 10 |
+
ans=s;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
maxsum=sum;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 12 |
+
cout<<ans<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
train/18962746.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,maxsum,sum,p,m,a,b,c,d,e;`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`10`0`1`11`0`0`0`0`0`0`0`0`1
|
| 4 |
+
string s,ans;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
while(cin>>n){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 6 |
+
maxsum=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`1
|
| 7 |
+
for(int i=0;i<n;++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
|
| 8 |
+
cin>>s>>p>>m>>a>>b>>c>>d>>e;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`9`0`0`0`0`0`0`0`0`0`0`17`0`17`0`0`0`0`0`0`0`0`0
|
| 9 |
+
sum=p*100-m*50+a+b+c+d+e;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`8`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`9`0`0`9`0`0
|
| 10 |
+
if(sum>maxsum){`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
ans=s;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 12 |
+
maxsum=sum;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
cout<<ans<<endl;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
train/18963021.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
scanf("%d %d %d",&n,&m,&d);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`1`0`0`0`0`0`0`0`4`0`4`3`0`1`0`3`0`3`0`0
|
| 4 |
+
mx=cnt=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 5 |
+
for(int i=1;i<=n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
for(int j=1;j<=m;j++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`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
|
| 7 |
+
scanf("%d",&a[cnt++]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`2`0`2`1`0
|
| 8 |
+
std::sort(a,a+cnt);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 9 |
+
for(int i=1;i<cnt;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 10 |
+
if((a[i]-a[0])%d){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`2`0
|
| 11 |
+
printf("-1\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`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
|
| 12 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 13 |
+
tmp=(a[i]-a[0])/d;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`3`0`0`3`2`0
|
| 14 |
+
if(tmp>mx) mx=tmp;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`0`0
|
| 15 |
+
printf("%d\n",mx);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
train/18963174.cpp.csv
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
char s[500] ;`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
|
| 4 |
+
scanf("%[^\n]s",s) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 5 |
+
int count = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int pos = 1 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
int neg = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
int n ;`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`1
|
| 9 |
+
string num = "" ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
int flag = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int len = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
for( int i = 0 ; ; i++ )`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`0`1`0`1`0`0
|
| 13 |
+
if( s[i] == '\0' ) { len = i ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`4`1`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 14 |
+
break ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 15 |
+
if( s[i] == '?' ) { count++ ; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`0
|
| 16 |
+
if( s[i] == '-' ) { neg++ ; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`1
|
| 17 |
+
if( s[i] == '+' ) { pos++ ; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`0
|
| 18 |
+
if( s[i] == '=' ) { `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 19 |
+
flag = 1 ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 20 |
+
continue ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
train/18963236.cpp.csv
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
char s[500] ;`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
|
| 4 |
+
scanf("%[^\n]s",s) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 5 |
+
int count = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int pos = 1 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
int neg = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
int n ;`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`1
|
| 9 |
+
string num = "" ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
int flag = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int len = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
for( int i = 0 ; ; i++ )`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`0`1`0`1`0`0
|
| 13 |
+
if( s[i] == '\0' ) { len = i ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`4`1`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 14 |
+
break ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 15 |
+
if( s[i] == '?' ) { count++ ; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`0
|
| 16 |
+
if( s[i] == '-' ) { neg++ ; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`1
|
| 17 |
+
if( s[i] == '+' ) { pos++ ; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`0
|
| 18 |
+
if( s[i] == '=' ) { `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 19 |
+
flag = 1 ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 20 |
+
continue ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
train/18963409.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n;`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`1
|
| 4 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 5 |
+
for (int i = 1; i <= n; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
cin >> a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`1
|
| 7 |
+
b[a[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 8 |
+
int ans1 = 0, ans2 = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
int m;`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`1
|
| 10 |
+
cin >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 11 |
+
for (int i = 0; i < m; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 12 |
+
int x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 13 |
+
cin >> x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 14 |
+
ans1 += b[x];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 15 |
+
ans2 += n - b[x] + 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`1`3`1`0
|
| 16 |
+
cout << ans1 << " " << ans2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`1`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`0`0
|
| 17 |
+
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
|
train/18963433.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,x;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
double f;`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
|
| 5 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int sum=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 7 |
+
for(int i=0;i<n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
cin>>x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
sum+=x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
f=sum/n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 11 |
+
printf("%.12f\n", f);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
train/18963535.cpp.csv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,m,a,b;`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`4`0`1`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
while(cin>>n){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i=1;i<=n;++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
|
| 6 |
+
cin>>a;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
num[a]=i;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 8 |
+
cin>>m;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
int ans1=0,ans2=0;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int i=0;i<m;++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
|
| 11 |
+
cin>>b;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 12 |
+
ans1+=num[b];`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 13 |
+
ans2+=n-num[b]+1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`1`3`1`0
|
| 14 |
+
cout<<ans1<<" "<<ans2<<endl;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`1`0`1`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
train/18963551.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n;`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`1
|
| 4 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 5 |
+
for(int i=0,x;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`2`3`1`6`0`0`0`1`1`0`2`0`0
|
| 6 |
+
scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 7 |
+
pos[x][0] = i+1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`2`0
|
| 8 |
+
pos[x][1] = n-i; `FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`2`0
|
| 9 |
+
int m;`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
|
| 10 |
+
int order = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int reorder = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
scanf("%d",&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 13 |
+
for(int i=0,x;i<m;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`2`3`1`6`0`0`0`1`1`0`2`0`1
|
| 14 |
+
scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 15 |
+
order += pos[x][0];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`2`0
|
| 16 |
+
reorder += pos[x][1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`2`0
|
| 17 |
+
cout<<order<<' '<<reorder<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
train/18963631.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,tmp,m,a=0,b=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 4 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 5 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
scanf("%d",&tmp);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 7 |
+
pos[tmp]=i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 8 |
+
scanf("%d",&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 9 |
+
for(int i=1;i<=m;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 10 |
+
scanf("%d",&tmp);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 11 |
+
if(pos[tmp])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 12 |
+
a+=pos[tmp];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 13 |
+
b+=n-pos[tmp]+1;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`1`3`1`0
|
| 14 |
+
a+=n;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 15 |
+
b+=n;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 16 |
+
printf("%d %d\n",a,b);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`1
|
| 17 |
+
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
|
train/18964018.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n;`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`1
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 5 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
cin>>a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 7 |
+
int m;`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
|
| 8 |
+
cin>>m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 9 |
+
int ans1=0,ans2=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int i=0;i<m;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
int que;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
cin>>que;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 13 |
+
for(int j=0;j<n;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`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
|
| 14 |
+
if(a[j]==que)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
ans1+=(j+1);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`0`0
|
| 16 |
+
break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`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
|
| 17 |
+
for(int j=n-1;j>=0;j--)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 18 |
+
if(a[j]==que)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 19 |
+
ans2+=(j+1);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`0`0
|
| 20 |
+
break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`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
|
| 21 |
+
cout<<ans1<<' '<<ans2<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`0`0`0`0`0`0
|
| 22 |
+
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
|
train/18964332.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`6`0`0`6`0`0`0`0`0`0`0`0`1
|
| 3 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 4 |
+
for(int i=1;i<=n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 6 |
+
a[x]=i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 7 |
+
}scanf("%d",&m);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(int i=1;i<=m;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 10 |
+
s1+=a[x];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 11 |
+
s2+=n-a[x]+1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`1`3`1`0
|
| 12 |
+
}return printf("%d %d\n",s1,s2),0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`1`0`0`1`0`1
|
train/18964456.cpp.csv
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n, m, a[1000], b[1001] = {}, ansMin = 0, ansMax = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`6`0`1`7`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for (int i = 0; i < m; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
cin >> a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 7 |
+
b[a[i]]++;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`1`0`1`2`0
|
| 8 |
+
sort(a, a + m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 9 |
+
for (int i = 0, k = n; i < m && k >= 0; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`3`5`2`2`0`0`1`0`0`0`1`2`5`1`8`0`0`0`3`1`0`4`0`0
|
| 10 |
+
if (k >= a[i]) ansMin += (a[i] * (a[i] + 1) / 2);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`8`2`2`0`1`0`0`0`0`0`0`8`0`8`0`0`0`4`0`1`5`3`0
|
| 11 |
+
else ansMin += k * (k + 1) / 2;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`1
|
| 12 |
+
k -= a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 13 |
+
for (int i = 1000; i >= 0; i--) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 14 |
+
if (b[i] > 0) {`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 15 |
+
if (n >= b[i]) ansMax += b[i] * i;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`7`0`0`0`1`0`0`0`0`0`0`7`0`7`0`0`0`2`0`1`3`2`0
|
| 16 |
+
else ansMax += n * i;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`1`2`0`0
|
| 17 |
+
n -= b[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 18 |
+
b[i - 1] += b[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`1`2`2`0
|
| 19 |
+
if (n <= 0) break;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`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`0
|
| 20 |
+
cout << ansMax << " " << ansMin;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`1`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`0`0
|
| 21 |
+
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
|
train/18964882.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
if(x==a.x) return t<a.t;`IfStmt,false;`0`0`0`0`0`0`0`0`1`0`0`0`1`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 3 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`1`4`0`5`1`0`0`2`1`0`3`0`0
|
| 4 |
+
scanf("%d%d",&n,&S);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 5 |
+
for(int i=1;i<=n;i++) scanf("%d%d",&s[i].x,&s[i].t);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`7`2`1`1`0`1`0`0`0`1`1`8`1`10`2`0`1`1`3`0`4`2`1
|
| 6 |
+
sort(s+1,s+n+1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`1`3`0`0`3`0`0
|
| 7 |
+
int ans=0,t=S;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for(int i=1;i<=n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`2`4`1`7`0`0`0`1`1`0`2`0`0
|
| 9 |
+
if(S-s[i].x>ans){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`1
|
| 10 |
+
t=i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
ans=S-s[i].x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 12 |
+
if(s[i].t>ans){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`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`1`0`0`1`1`0
|
| 13 |
+
ans=s[i].t;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
t=i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 15 |
+
if(s[t].x>0) ans+=s[t].x;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`0`1`2`2`0
|
| 16 |
+
cout<<ans<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 17 |
+
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
|
train/18965283.cpp.csv
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,m;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int count=2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int d=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
std::cin>>n>>m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 7 |
+
char ch[n+1];`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
|
| 8 |
+
d=n-m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 9 |
+
bool flag=false;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if(d>=0&&(n!=2||m!=1)) {`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`3`3`3`0`1`0`0`0`0`0`0`3`0`3`0`0`0`5`0`0`5`0`1
|
| 11 |
+
ch[0]='a';`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 12 |
+
ch[1]='b';`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`1`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 13 |
+
for(int i=0;i<d;i++) {`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 14 |
+
if(flag==false) {`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`1`1`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 15 |
+
ch[2+i]='a';`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`2`2`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`1`0
|
| 16 |
+
flag=true;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 17 |
+
ch[2+i]='b';`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`2`2`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`1`0
|
| 18 |
+
flag=false;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`11`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 19 |
+
for(int i=0;i<m-2;i++) {`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 20 |
+
int c1= char(count+i+97);`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 21 |
+
ch[n-m+2+i]=char(c1);`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 22 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 23 |
+
std::cout<<ch[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 24 |
+
else printf("-1");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
train/18966659.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,a,b;`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`3`0`1`4`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin >> n >> a >> b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 5 |
+
Fre(i,a,n)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`0`0
|
| 6 |
+
For(j,b+1)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 7 |
+
if(i+j+1==n)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`1`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 8 |
+
cout << i+1;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`1
|
| 9 |
+
return 0;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
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
|
train/18966688.cpp.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
fib[0] = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`2`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 4 |
+
fib[1] = 1; fib[2] = 2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`4`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`2`1
|
| 5 |
+
for(int i=3;i<50;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 6 |
+
fib[i] = fib[i-1] + fib[i-2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`6`2`2`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
|
| 7 |
+
cin >> input;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for(int i=0;i<50 && input>fib[i];i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`3`5`2`2`0`0`1`0`0`0`1`1`5`1`7`0`0`0`3`1`0`4`1`1
|
| 9 |
+
num = input - fib[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 10 |
+
for(int j=0;j<50 && num>fib[j];j++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`6`5`2`2`0`0`1`0`0`0`1`1`5`1`7`0`0`0`3`1`0`4`1`1
|
| 11 |
+
n = num - fib[j];`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`6`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 12 |
+
for(int k=0 ;k<50 && n>=fib[k];k++){`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`0`0`0`0`4`0`9`5`2`2`0`0`1`0`0`0`1`1`5`1`7`0`0`0`3`1`0`4`1`0
|
| 13 |
+
if(n==fib[k]){`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`10`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
flag = 1;`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`10`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 15 |
+
c = fib[k];`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`10`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 16 |
+
break;`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`10`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 17 |
+
if(flag==1){`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`7`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 18 |
+
b = fib[j];`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`7`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 19 |
+
break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`7`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if(flag==1){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 21 |
+
a = fib[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 22 |
+
break;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
|
| 23 |
+
if(flag) cout << a << " " << b << " " << c << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`5`2`0`2`1`0`0`0`0`0`0`12`0`12`0`0`0`0`0`0`0`0`0
|
| 24 |
+
else cout << "I'm too stupid to solve this problem" << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 25 |
+
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
|
train/18967184.cpp.csv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
ios_base::sync_with_stdio(0);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 4 |
+
int n;`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
|
| 5 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int a[n+1];a[n]=90;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`1`0`0`1`1`0
|
| 7 |
+
for(int i = 0 ; i< n; i++)cin >> a[i];int c=0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`6`2`2`0`0`1`0`0`0`1`2`7`2`11`0`0`0`1`1`0`2`1`0
|
| 8 |
+
for(int i = 1; i < a[i]; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`1`1
|
train/18967446.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
string make(int a) {`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
|
| 3 |
+
string s = "", t = "";`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`0`2`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
while (a) {`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
s += (a % 10) + '0';`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`2`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 6 |
+
a /= 10;`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`0`0`1`1`0`0
|
| 7 |
+
for (int i = s.size() - 1; i >= 0; i--) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 8 |
+
t += s[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 9 |
+
return t;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 10 |
+
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
|
| 11 |
+
int a, b, n, mod = 1e9;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
|
| 12 |
+
cin >> a >> b >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 13 |
+
string s = make(a), t = make(a);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`2`4`1`7`0`2`2`0`0`0`0`0`1
|
| 14 |
+
for (int i = 0; i < n; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 15 |
+
for (int j = 0; j < 10; j++) {`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 16 |
+
int curr = (a * 10 + j) % mod;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`3`0`0`3`0`1
|
| 17 |
+
if (curr % b == 0) {`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
a = curr;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 19 |
+
s += j + '0';`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`1`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 20 |
+
break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`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
|
| 21 |
+
cout << (s == t ? "-1" : s);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`0`1`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`0`1
|
| 22 |
+
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
|
train/18967738.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,b,j=0,jj=0,jjj=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
cin>>b;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(i%2==0) jj+=b;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`2`2`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`1
|
| 8 |
+
else if(i%3==0) jjj+=b;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`2`2`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`0
|
| 9 |
+
else j+=b;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
if(jj>jjj&&jj>j) cout<<"biceps";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`5`1`0`1`1`0`0`0`0`0`0`6`0`6`0`0`0`3`0`0`3`0`0
|
| 11 |
+
else if(jjj>jj&&jjj>j) cout<<"back";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`6`5`1`0`1`1`0`0`0`0`0`0`6`0`6`0`0`0`3`0`0`3`0`0
|
| 12 |
+
else cout<<"chest";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`6`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/18967884.cpp.csv
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int a,b,n;`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`3`0`1`4`0`0`0`0`0`0`0`0`1
|
| 3 |
+
scanf("%d%d%d",&a,&b,&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`1`0`0`0`0`0`0`0`4`0`4`3`0`1`0`3`0`3`0`0
|
| 4 |
+
for (int i=1;;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`0`1`0`1`0`0
|
| 5 |
+
if (n<a)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 6 |
+
printf("0");break;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
| 7 |
+
if (i%2!=0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
|
| 8 |
+
if (n%a==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 9 |
+
n=n-a;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 10 |
+
if (n==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
printf("0");break;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 12 |
+
n=n-1;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 13 |
+
if (n==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 14 |
+
printf("0");break;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 15 |
+
if (n%b==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 16 |
+
n=n-b;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 17 |
+
if (n==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 18 |
+
printf("1");break;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 19 |
+
n=n-1;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 20 |
+
if (n==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 21 |
+
printf("1");break;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
train/18968476.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n;`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
|
| 4 |
+
cin>>n; `FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int sv = n/7;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 6 |
+
string sol="";`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
for(int i=sv; i>=0; --i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
if((n-i*7)%4==0){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`3`3`0`1`0`0`0`0`0`0`2`0`2`0`0`0`4`0`0`4`0`0
|
| 9 |
+
for(int j=0; j<(n-i*7)/4; ++j)sol+='4';`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`4`3`0`0`1`0`0`0`1`1`6`1`8`0`0`0`4`1`0`5`0`0
|
| 10 |
+
for(int j=0; j<sv; ++j)sol+='7';`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`2`1`0`0`1`0`0`0`1`1`5`1`7`0`0`0`1`1`0`2`0`1
|
| 11 |
+
cout<<sol;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 12 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 13 |
+
cout<<-1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
|
train/18968807.cpp.csv
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
void pull(int p){`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
|
| 3 |
+
minsum[p]=min(minsum[p*2],minsum[p*2+1])+sum[p];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`3`3`0`0`0`0`0`0`0`0`9`0`9`0`0`1`5`0`0`5`4`0
|
| 4 |
+
void initialize(int p,int l,int r){`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`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
|
| 5 |
+
if(l==r) {`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 6 |
+
minsum[p]=sum[p]=a[l];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`3`0
|
| 7 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 8 |
+
sum[p]=0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 9 |
+
initialize(lft);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`1`0`0`0`0`0`0
|
| 10 |
+
initialize(rgt);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`3`0`0`3`0`0
|
| 11 |
+
void add(int p,int l,int r){`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`4`4`0`0`0`0`0`0`0`0`4`0`4`0`0`0`5`0`0`5`0`1
|
| 12 |
+
if(L<=l && R>=r){`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 13 |
+
sum[p]+=v;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 14 |
+
minsum[p]+=v;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 15 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 16 |
+
if(L<=mid) add(lft);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`0`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 17 |
+
if(R>mid) add(rgt);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`0`7`3`3`0`1`0`0`0`0`0`0`8`0`8`0`1`1`6`0`0`6`0`0
|
| 18 |
+
pull(p);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`7`5`5`0`0`0`0`0`0`0`0`9`0`9`0`2`2`7`0`0`7`0`0
|
| 19 |
+
long long query(int p,int l,int r){`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`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
|
| 20 |
+
if (L<=l && R>=r)return minsum[p];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`3`0`0`3`1`0
|
| 21 |
+
long long res=INF;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 22 |
+
if(L<=mid) res=min(res,query(lft));`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`0`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 23 |
+
if(R>mid) res=min(res,query(rgt));`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`0`9`3`3`0`1`0`0`0`0`0`0`11`0`11`0`1`2`7`0`0`7`0`0
|
| 24 |
+
res+=sum[p];`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`1`2`8`0`1`9`1`0
|
| 25 |
+
return res;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 26 |
+
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
|
| 27 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 28 |
+
for(int i=0;i<n;i++)scanf("%d",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`2`1`1`0`1`0`0`0`1`1`6`1`8`1`0`1`1`2`0`3`1`0
|
| 29 |
+
initialize(1,0,n-1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`3`3`0`0`0`0`0`0`0`0`2`0`2`0`1`1`1`0`0`1`0`0
|
| 30 |
+
scanf("%d",&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 31 |
+
gets(ch);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 32 |
+
while(m--){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 33 |
+
gets(ch);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 34 |
+
int lf,rg;`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
|
| 35 |
+
if(sscanf(ch,"%d%d%d",&lf,&rg,&v)==3){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`4`2`1`1`1`0`0`0`0`0`0`5`0`5`3`0`1`1`3`0`4`0`0
|
| 36 |
+
if(rg<lf){`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 37 |
+
L=lf;R=n-1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 38 |
+
add(1,0,n-1);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`3`3`0`0`0`0`0`0`0`0`2`0`2`0`1`1`1`0`0`1`0`0
|
| 39 |
+
L=0;R=rg;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 40 |
+
add(1,0,n-1);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`3`3`0`0`0`0`0`0`0`0`2`0`2`0`1`1`1`0`0`1`0`0
|
| 41 |
+
L=lf;R=rg;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`0`0
|
| 42 |
+
add(1,0,n-1);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`3`3`0`0`0`0`0`0`0`0`2`0`2`0`1`1`1`0`0`1`0`0
|
| 43 |
+
long long res;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 44 |
+
sscanf(ch,"%d%d",&lf,&rg);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`1`0`1`0`0`0`0`0`0`0`4`0`4`2`0`1`0`2`0`2`0`0
|
| 45 |
+
if(rg<lf){`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 46 |
+
L=lf;R=n-1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 47 |
+
res=query(1,0,n-1);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`2`3`3`0`0`0`0`0`0`0`0`3`0`3`0`1`1`2`0`0`2`0`0
|
| 48 |
+
L=0;R=rg;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 49 |
+
res=min(res,query(1,0,n-1));`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`3`3`3`0`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
|
| 50 |
+
L=lf;R=rg;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`0`0
|
| 51 |
+
res=query(1,0,n-1);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`2`3`3`0`0`0`0`0`0`0`0`3`0`3`0`1`1`2`0`0`2`0`0
|
| 52 |
+
printf("%I64d\n",res);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 53 |
+
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
|