fork(2) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. void convert(int n) {
  4. if (n < 0)
  5. printf("%d", n);
  6. else {
  7. convert(n/2);
  8. printf("%d", n%2);
  9. }
  10.  
  11. }
  12. int main() {
  13. // your code goes here
  14. convert(1);
  15. return 0;
  16. }
Time limit exceeded #stdin #stdout 5s 0KB
stdin
Standard input is empty
stdout
Standard output is empty