题解 | #信件#

星期几考试?

https://ac.nowcoder.com/acm/contest/71512/A

很神奇的发现后面全是5*奇数必然是5,amazing!!!

#include <bits/stdc++.h>
using namespace std;
#define ios ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define ll long long

int main()
{
	//freopen("","r",stdin);
	//freopen("","w",stdout);
	ios;
	int T;
	cin>>T;
	while(T--)
	{
		ll n,ans;
		cin>>n;
		if(n==1)ans=9;
		if(n==2)ans=5;
		if(n>2)	ans=5;
		cout<<ans<<endl;
	}
	return 0;
}
全部评论

相关推荐

08-01 16:47
门头沟学院 Java
点赞 评论 收藏
分享
06-24 19:27
云南大学 Java
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务