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;
"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;