| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85542 | sh25_zhuhy | 数制转换 | C++ | 解答错误 | 0 MS | 192 KB | 369 | 2026-03-13 15:30:05 |
#include <cstdio> int N; int M; char p; int n; int s = 0; int main() { scanf("%d", &N); s = N; while(scanf(" %c", &p) != EOF) { if(p == 'Q') break; scanf("%d", &n); s -= n; M++; } s += 2; int mul = 1; for(int i = 1; i <= M; i++) mul *= (s - i); printf("%d", mul); return 0; }