| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 91304 | sh25_zhangyj | 转圈游戏(Day 1) | C++ | Accepted | 0 MS | 248 KB | 350 | 2026-06-12 15:29:07 |
#include <bits/stdc++.h> using namespace std; typedef long long LL; LL ksm(LL a, LL b, LL p) { LL ans = 1; while (b) { if (b & 1) ans = ans * a % p; a = a * a % p; b >>= 1; } return ans; } int main() { int n, m, k, x; cin >> n >> m >> k >> x; cout << (x % n + m % n * ksm(10, k, n) % n) % n << endl; return 0; }