NYOJ 294 Bot Trust
摘要:链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=294一步一步模拟出来的....把情况考虑全面: “Both robots know the full sequence in advance” #include #include#includ...
阅读全文
HDU 1555 How many days?
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1555模拟一下就行了..注意不要忘了musing namespace std;int main(){ int m,k; int ans; while(cin>>m>>k&&m+k!=0) ...
阅读全文
NYOJ 168 房间安排
摘要:链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=168模拟即可:#include using namespace std;int sign[200];int main(){ int t; int n; int i; in...
阅读全文
HDU 1234 开门人和关门人
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1234直接用strcmp()比较时间即可#include #include int main(){ bool judge(char t1[],char t2[]); char id[20]; char t1[...
阅读全文
HDU 1172 猜数字
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1172把1000~9999间的数字遍历一遍,如果只有一个符合条件的话,就输出,否则 not sure#include using namespace std;char data[105][5];int a[1...
阅读全文
HDU 1035 Robot Motion
摘要:链接:http://acm.hdu.edu.cn/showproblem.php?pid=1035简单模拟题...但有几个细节需要注意:1>当输入为0 0 时程序会不会正常结束(如果scanf("%d%d%d",....)是不可以滴)2>走到边缘是不结束的,只要迈出去才算3>注意loop的步数,不要...
阅读全文