fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. uint32_t angle_metadata_current_line_and_last_ray;
  5. static inline void SET_CURRENT_LINE_AND_LAST_RAY(uint16_t line, uint16_t last_ray)
  6. {
  7. angle_metadata_current_line_and_last_ray = (line << 16) | (last_ray & 0xFFFF);
  8. }
  9.  
  10.  
  11. int main(void) {
  12. // your code goes here
  13. SET_CURRENT_LINE_AND_LAST_RAY(15, 900);
  14. printf("%u", angle_metadata_current_line_and_last_ray);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
983940