CodeForces-171D Broken checker
来源:互联网 发布:java word svg 编辑:程序博客网 时间:2024/06/01 09:20
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;
阅读全文
0 0
- CodeForces-171D Broken checker
- codeforces 171D Broken checker (多次尝试)
- CodeForces 370D Broken Monitor
- Codeforces 797D Broken BST dfs+模拟
- Educational Codeforces Round 19-D. Broken BST
- CodeForces 24D Broken robot(三对角矩阵)
- CodeForces 24D Broken robot (概率DP)
- CodeForces 24D Broken robot(概率dp+三对角矩阵)
- codeforces 258D Little Elephant and Broken Sorting
- Codeforces 258D Little Elephant and Broken Sorting
- D - Spell checker
- WordPress三链客:Broken Link Checker,Broken Link Checker,WP External links
- D - A Broken Calculator
- 797D Broken BST
- D. Broken BST
- Broken robot CodeForces
- 4D Checker v3.0
- Codeforces 258D Little Elephant and Broken Sorting (逆序对,概率)
- 致计算机专业师弟师妹们 -- “要不要读国外经典?怎么读经典”之我见
- 机器学习——线性模型之逻辑回归
- 读《一只 iPhone 的全球之旅》
- 时刻提醒自己,你为什么在这,你放弃了什么
- 安装mysql 5.7.19 winx64解压缩版
- CodeForces-171D Broken checker
- 模拟字符设备驱动的实现
- 数据结构实验之链表八:Farey序列
- Java中Split函数的用法技巧
- 【BigHereo 21】---T5-《信息系统开发与管理》---系统分析
- Eclipse各版本分析比较
- Linux下编译Android ffmpeg库(mediacodec 硬件解码)
- LeetCode71 Simplify Path
- 稳定匹配算法python实现