Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =============================== solution.S
- .intel_syntax noprefix
- .global ackermann
- ackermann:
- =============================== tests.cpp
- #include <iostream>
- extern "C" int ackermann(int, int);
- int main() {
- int t; std::cin >> t;
- while(t--) {
- int n, m; std::cin >> n >> m;
- std::cout << ackermann(n, m) << '\n';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment