poj3062
来源:互联网 发布:nginx tomcat 502错误 编辑:程序博客网 时间:2024/06/06 15:44
为了庆祝我今天拿到驾照~哈
It's hard to construct a problem that's so easy that everyone will get it, yet still difficult enough to be worthy of some respect. Usually, we err on one side or the other. How simple can a problem really be?
Here, as in Celebrity Jepoardy, questions and answers are a bit confused, and, because the participants are elebrities, there’s a real need to make the challenges simple. Your program needs to prepare a question to be solved --- an equation to be solved --- given the answer. Specifically, you have to write a program which finds the simplest possible equation to be solved given the answer, considering all possible equations using the standard mathematical symbols in the usual manner. In this context, simplest can be defined unambiguously several different ways leading to the same path of resolution. For now, find the equation whose transformation into the desired answer requires the least effort.
For example, given the answer X = 2, you might create the equation 9 - X = 7. Alternately, you could build the system X > 0; X^2 = 4. These may not be the simplest possible equations. Solving these mind-scratchers might be hard for a celebrity.
#include <stdio.h>char s[101];int main(){while(gets(s)!=NULL)puts(s);return 0;}
- poj3062
- poj3062
- poj3062
- poj3062
- poj3062
- poj3062
- POJ3062:Celebrity jeopardy
- poj3062(太水)
- C# Ini文件操作实例
- log4net配置文件设置
- Windows沙拉:默认浏览器背后的故事
- Linux如何查看进程、杀死进程、启动进程等常用命令
- MSSQL 2008自动备份数据库
- poj3062
- Lua中的数学库
- 求不规则图形内像素点(凸状)
- linux硬盘检测健康状态
- 用户权限设计
- 在iOS中创建静态库(Creating a Static Library in iOS Tutorial)
- centos配置ip地址 添加多个ip地址
- 为unity添加自定义菜单
- LVS负载均衡学习