Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include<assert.h>
  2. int
  3. main(int argc, char*argv[]){
  4. int size = 0;
  5. int buf[1024];
  6. read(0,&size,sizeof(size));
  7. assert (size <= 1024);
  8. read(0,buf,size*sizeof(int));
  9. if (size > 0 && size < 100 && buf[999] == 'B')
  10. printf("YOU WIN!n");
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement