CodeForces-171D Broken checker

D. Broken checker
"This problem is rubbish! There is not statement, and there are only 5 test cases. The problemsetter took liberties with this problem!" — people complained in the comments to one round on Codeforces. And even more... No, wait, the checker for the problem was alright, that's a mercy.
Input
The only line of the input contains an integer between 1 and 5, inclusive. All tests for this problem are different. The contents of the test case doesn't need to be equal to its index.
Output
The only line of the output contains an integer between 1 and 3, inclusive.
Examples
Note
This problem has no samples, since there so few test cases.


//想知道答案的可以拉到末尾




CodeForces2014年愚人节专场,题目意思说很简单,输入数字范围为1-5
输入一个数字以后输出一个答案1-3;
这的数据范围很小,而且对应关系未知,那么我们可以Rand以下测试以下人品。


这场题目满有意思,这个题目在CodeForces上,可以从看到测试数据,其实可以一组一组测试,推进下去。
这个组合方案有3^5中,还是比较考验人品。


我一开始用Rand写的随机数,过了3组样例,又交了几组,走的最远也只是在第四组WA
代码比较简单,就不放了

















输入的5个数字分别对应1 2 3 2 1;
全部评论

相关推荐

10-29 15:38
门头沟学院 Java
榕城小榕树:难道你简历里写了配送路径优化算法?
点赞 评论 收藏
分享
10-18 13:01
已编辑
西安理工大学 C++
小米内推大使:建议技能还是放上面吧,hr和技术面试官第一眼想看的应该是技能点和他们岗位是否匹配
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务