比赛 期末考试4 评测结果 AAAAAAWWWW
题目名称 故障机器人 最终得分 60
用户昵称 彭欣越 运行时间 0.850 s
代码语言 C++ 内存使用 3.66 MiB
提交时间 2026-02-12 12:09:08
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e7+10;
int q,n,a[11];
int main () {
	freopen("robot.in","r",stdin);
	freopen("robot.out","w",stdout); 
    ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    a[0]=1,a[1]=1,a[2]=4,a[3]=24,a[4]=180,a[5]=1680;
    cin >> q;
    while (q--) {
    	cin >> n;
    	if (n<=5) cout << a[n] <<endl;
    	else{
    		cout << 75*n <<endl;
		}
	}
	return 0;
}