| 比赛 |
期末考试4 |
评测结果 |
AAAAAAWWWW |
| 题目名称 |
故障机器人 |
最终得分 |
60 |
| 用户昵称 |
LikableP |
运行时间 |
0.353 s |
| 代码语言 |
C++ |
内存使用 |
3.87 MiB |
| 提交时间 |
2026-02-12 11:15:48 |
显示代码纯文本
#include <cstdio>
#include <map>
int q, n;
int main() {
#ifdef LOCAL
freopen("!input.in", "r", stdin);
freopen("!output.out", "w", stdout);
#else
freopen("robot.in", "r", stdin);
freopen("robot.out", "w", stdout);
#endif
scanf("%d", &q);
while (q--) {
scanf("%d", &n);
printf("%d\n", std::map<int, int>{{0, 1}, {1, 1}, {2, 4}, {3, 24}, {4, 180}, {5, 1680}}[n]);
}
return 0;
}