Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
128080 | 梁思宸 | 单峰排列 | C++ | 解答错误 | 0 | 777 MS | 260 KB | 302 | 2024-01-25 11:40:48 |
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll func (int x){ ll mul = 1; for (int i = 1; i <= x; i++){ mul *= 2; } return mul; } int main (){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; cout << (func(n - 1)) % n << endl; return 0; }