Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- { pasoc::bst++;
- text input, output;
- if(input == 0) input = random(); pasoc::files[input] = "input.txt";;
- if(output == 0) output = random(); pasoc::files[output] = "output.txt";;
- freopen(pasoc::files[input].c_str(), "r", __stdinp); pasoc::stdinname = pasoc::files[input];;
- freopen(pasoc::files[output].c_str(), "w", __stdoutp); pasoc::stdoutname = pasoc::files[output];;
- longint i;
- std::cin >> i;
- pasoc::__add(0, 0); for(; i != 0 || pasoc::__st_pop_back(); pasoc::__increment())
- std::cout << i-- << std::endl;
- pasoc::__add(&( i = 1 ),1); for(; *pasoc::__get() <= 100 || pasoc::__st_pop_back(); pasoc::__increment())
- { pasoc::bst++;
- longint j;
- pasoc::__add(&( j = 100 ), 2); for(; *pasoc::__get() >= 1 || pasoc::__st_pop_back(); pasoc::__increment())
- if( i == j or i*i == j )
- { pasoc::bst++;
- std::cout << i*j << std::endl;
- pasoc::bst--;}
- pasoc::bst--;};
- fclose(pasoc::files[input] == pasoc::stdinname ? __stdinp : __stdoutp);;
- fclose(pasoc::files[output] == pasoc::stdinname ? __stdinp : __stdoutp);;
- pasoc::bst--;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement