Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
19
hw5/oatprograms/easyrun10.oat
Normal file
19
hw5/oatprograms/easyrun10.oat
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
int program (int argc, string[] argv) {
|
||||
var x = new int[][]{new int[]{1},
|
||||
new int[]{2},
|
||||
new int[]{3},
|
||||
new int[]{4}};
|
||||
var ans = 0;
|
||||
|
||||
for(var i=0;i<4;i=i+1;) {
|
||||
ans = x[i][0] - ans;
|
||||
}
|
||||
|
||||
if((5 [&] ~5 [|] 0) != 0) {
|
||||
return ans;
|
||||
} else {
|
||||
return -ans;
|
||||
}
|
||||
|
||||
return ans;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue