Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
84012 sh25_shenpy Hanoi双塔问题 C++ 编译错误 0 MS 0 KB 222 2026-02-05 16:07:16

Tests(0/0):


#include <iostream> #include <gmpxx.h> using namespace std; int main() { int n; while(cin >> n){ mpz_class result = (mpz_class(1) << (n + 1)) - 2; cout << result << endl; } return 0; }


测评信息: