fork download
  1. #include <iostream>
  2. #include <cassert>
  3. using namespace std;
  4.  
  5. int MOD[64][21];
  6.  
  7. int main() {
  8. // your code goes here
  9. int ceg = ((1<<6)-1);
  10. cout<<ceg<<endl<<endl<<endl;
  11.  
  12. for(int i=0;i<64;i++){
  13. for(int j=1;j<21;j++){
  14. MOD[i][j] = i%j;
  15. }
  16. }
  17.  
  18. for(int i = 0; i<100;i++){
  19. cout<<MOD[rand()&ceg][10]<<endl;
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 4236KB
stdin
Standard input is empty
stdout
63


9
6
1
1
7
3
0
4
1
3
8
3
0
9
5
6
0
2
0
6
7
0
9
3
4
6
6
5
1
1
9
6
8
0
3
5
9
4
5
6
7
9
5
3
4
1
0
0
3
0
3
6
7
2
0
7
4
2
2
1
3
1
8
7
8
1
2
3
1
3
0
9
2
1
2
3
2
8
3
2
5
6
8
2
4
8
9
9
0
7
0
0
4
4
7
8
2
6
2
3