s********x 发帖数: 914 | |
s********x 发帖数: 914 | 2 -21779453?
【在 s********x 的大作中提到】 : 正在做puzzle: : http://www.facebook.com/careers/puzzles.php
|
s********x 发帖数: 914 | 3 4273187843?
【在 s********x 的大作中提到】 : -21779453?
|
m********l 发帖数: 4394 | 4 1,051,962,371
【在 s********x 的大作中提到】 : -21779453?
|
m********l 发帖数: 4394 | 5
yea, google
1********[email protected]
【在 m********l 的大作中提到】 : 1,051,962,371
|
s********x 发帖数: 914 | 6 Thanks! 原来是unsigned int啊! 本人用java的,呵呵
偶在做 http://www.facebook.com/careers/puzzles.php?puzzle_id=8 这题。
不知道这个input file是不是就直接放在root of project 下了呢。还有要生成
executable,是不是直接就用eclipse生成jar file就可以了?
另外system.out.println()的输出貌似在executable file看不到啊。
build.xml是不是用eclipse直接生成就可以了?
谢谢诶!
【在 m********l 的大作中提到】 : : yea, google : 1********[email protected]
|
m********l 发帖数: 4394 | 7 俺不懂Java
不过你想太多了
input file can be anywhere.
and you output to the "standard out"
it's a pretty straightforward puzzle.
【在 s********x 的大作中提到】 : Thanks! 原来是unsigned int啊! 本人用java的,呵呵 : 偶在做 http://www.facebook.com/careers/puzzles.php?puzzle_id=8 这题。 : 不知道这个input file是不是就直接放在root of project 下了呢。还有要生成 : executable,是不是直接就用eclipse生成jar file就可以了? : 另外system.out.println()的输出貌似在executable file看不到啊。 : build.xml是不是用eclipse直接生成就可以了? : 谢谢诶!
|
s********x 发帖数: 914 | 8 But how does the robot know?
Do I need to make it a command arg which is the file and its directory?
【在 m********l 的大作中提到】 : 俺不懂Java : 不过你想太多了 : input file can be anywhere. : and you output to the "standard out" : it's a pretty straightforward puzzle.
|
m********l 发帖数: 4394 | 9 you can't just pipe it in?
a.out < input.txt
【在 s********x 的大作中提到】 : But how does the robot know? : Do I need to make it a command arg which is the file and its directory?
|
s********x 发帖数: 914 | 10 So for Java, I would use args[0] as the file. It's command arg.
【在 m********l 的大作中提到】 : you can't just pipe it in? : a.out < input.txt
|
s********x 发帖数: 914 | 11 How many files in total should I submit?
I submitted one executable jar file and one compressed zip file of the code.
I am getting reply:
your solution to the peaktraffic puzzle (received on May 4, 2011, 8:25 pm)
could not be built and/or run. For security reasons, I cannot give out exact
errors. Please double check your submission for the following things:
- If you compressed your solution, it needs to be compressed either as a .
zip file, a .tgz file, .tar.gz, or a .tar.bz2 file.
- Furthermore, if your solution was submitted as a compressed file, please
make sure that the executable file or Makefile/build.xml uncompresses into
the same directory as the compressed file. The robot does not search
arbitrary sub-directories!
- If you used a compiled language, check that your submission includes a
Makefile or an Ant build.xml file that can be used with the commands 'make'
or 'ant'. Make sure your Makefil/build.xml file is in the top level
directory, and not in a sub-directory (sub-directories are acceptable for
source code organization).
- Was your solution written in one of the accepted languages and versions?
See http://www.facebook.com/careers/puzzles.php for the complete list.
- The final executable result needs to be a file with the exact name of '
peaktraffic'. A common error is leaving file extensions on script solutions.
Do not worry about file permissions, I will do that for you. Make sure the
executable named after the puzzle keyword is not in a sub-directory.
If nothing else works, try creating a discussion at the Facebook Puzzle
Master Page at http://www.facebook.com/PuzzleMaster and asking your question.
【在 s********x 的大作中提到】 : So for Java, I would use args[0] as the file. It's command arg.
|