#include <stdio.h>
#define JOGADAS 20
int main(void) {
int game1[JOGADAS] = {10, 9, 1, 6, 3, 7, 0, 8, 2, 0, 8, 2, 0, 8, 2, 0, 8, 10, 9, 1};
//int game2[18] = {9, 1, 0, 10, 10, 10, 6, 2, 7, 3, 8, 2, 10, 9, 0, 9, 1, 2};
//int game3[17] = {10, 9, 0, 8, 2, 10, 10, 7, 3, 4, 6, 10, 9, 1, 10, 7, 3};
int i;
for(i=0; i<JOGADAS; i++) {
if(game1[i] == 10) {
}
else if (game1[i]+game1[i+1] == 10) {
i++; //avança mais uma casa
}
else {
i++; //avança mais uma casa
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgSk9HQURBUyAyMAoKaW50IG1haW4odm9pZCkgewogICAgaW50IGdhbWUxW0pPR0FEQVNdID0gezEwLCA5LCAxLCA2LCAzLCA3LCAwLCA4LCAyLCAwLCA4LCAyLCAwLCA4LCAyLCAwLCA4LCAxMCwgOSwgMX07CiAgICAvL2ludCBnYW1lMlsxOF0gPSB7OSwgMSwgMCwgMTAsIDEwLCAxMCwgNiwgMiwgNywgMywgOCwgMiwgMTAsIDksIDAsIDksIDEsIDJ9OwogICAgLy9pbnQgZ2FtZTNbMTddID0gezEwLCA5LCAwLCA4LCAyLCAxMCwgMTAsIDcsIDMsIDQsIDYsIDEwLCA5LCAxLCAxMCwgNywgM307CiAgICBpbnQgaTsKICAgIAogICAgZm9yKGk9MDsgaTxKT0dBREFTOyBpKyspIHsKICAgICAgICBpZihnYW1lMVtpXSA9PSAxMCkgewogICAgICAgICAgICBwcmludGYoIlNUUklLRVxuIik7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKGdhbWUxW2ldK2dhbWUxW2krMV0gPT0gMTApIHsKICAgICAgICAgICAgcHJpbnRmKCJTUEFSRVxuIik7CiAgICAgICAgICAgIGkrKzsgLy9hdmFuw6dhIG1haXMgdW1hIGNhc2EKICAgICAgICB9CiAgICAgICAgZWxzZSB7CiAgICAgICAgICAgIHByaW50ZigiTUlTU1xuIik7CiAgICAgICAgICAgIGkrKzsgLy9hdmFuw6dhIG1haXMgdW1hIGNhc2EKICAgICAgICB9CiAgICAgICAgCiAgICB9CiAgICByZXR1cm4gMDsKfQ==