fork(1) download
  1. #include <time.h>
  2. #include <iostream>
  3. #include <vector>
  4.  
  5. struct Nested: std::vector<Nested> {};
  6. Nested nested(size_t h) {
  7. Nested res;
  8. if(h > 0) {
  9. res.push_back(std::move(nested(h-1)));
  10. }
  11. return res;
  12. }
  13.  
  14. int main() {
  15. size_t h = 30;
  16. Nested s1 = nested(h);
  17. Nested s2 = nested(h);
  18. s1 < s2;
  19. }
  20.  
Time limit exceeded #stdin #stdout 5s 4996KB
stdin
Standard input is empty
stdout
Standard output is empty