昨晚心血来潮,竟然跑到POJ上做了一道题,之前我只做过NO.1001,靠,别笑我………..

做了1852的Ant(蚂蚁),当然,我没有完全自己做出来,参考了一下别人的提示,才恍然大悟。

但是我自己的代码在POJ上总是通不过,虽然我认为肯定是对的。==!

最后没办法,把我的代码参照别人的,形式上改了下,Accepted.

最后,我想是不是他的编译器处理除法的时候得到的是小数? 例如 6/2=3.0  ?

发现问题了,大意了,下一篇日志贴代码。

Tags: ,. 4,387 views
Home

6 Comments so far

Trackbacks/Pingbacks

Leave a comment

Name(required)
Mail (required),(will not be published)
Website(recommended)

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
URLs must be fully qualified (eg: http://blog.nlogn.cn),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.