Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 14th, 2003, 02:01 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[numbers] input & checkme

Does checkme=1 mean we ignore input=filename, prompt for numbers and target?

You want to see everything?

Reply With Quote
  #2  
Old October 14th, 2003, 02:05 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[numbers] RE: input & checkme

Will somefile.txt include a path we need to strip off before we write to somefile.out ?

Reply With Quote
  #3  
Old October 14th, 2003, 02:11 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
[numbers] RE: input & checkme

checkme does mean to ignore the input param...


input file may have a path...as stated in the rules though, output will always be in the same dir as your script.

Reply With Quote
  #4  
Old October 14th, 2003, 08:53 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: input & checkme

Ahh, so we need to output the log file for each input file?

the name of the outputfile should then be
php Code:
Original - php Code
  1.  
  2. $outfilename=array_pop(explode("/", $_GET["input"])).".out";

right?

Reply With Quote
  #5  
Old October 14th, 2003, 01:41 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 11979 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 37 sec
Reputation Power: 4
[numbers] RE: input & checkme

xs0 is taking part in the contest? Everyone else can kiss the first place goodbye...

Reply With Quote
  #6  
Old October 15th, 2003, 12:30 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[numbers] RE: input & checkme

1. What method should be use for input in case "checkme=1"? Just show you <form ...>?

2. What output file name in case "checkme=0"? Like case "checkme=1", or just "echo" it?

Reply With Quote
  #7  
Old October 15th, 2003, 01:02 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
[numbers] RE: RE: input & checkme


Quote:
1. What method should be use for input in case "checkme=1"? Just show you <form ...>?


"When called in this way, I should be able to enter the 6 numbers and the target number. Your script should then show me everything it figures out with those numbers."

So, yes a form will be fine.

Quote:
2. What output file name in case "checkme=0"? Like case "checkme=1", or just "echo" it?


regardless whether the checkme is set, you need to output a log file as described. I will clarify this in the rules.

Reply With Quote
  #8  
Old October 16th, 2003, 02:41 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[numbers] RE: RE: input & checkme


Quote:
checkme does mean to ignore the input param...


input file may have a path...as stated in the rules though, output will always be in the same dir as your script.



Should we prompt for a filename (for the log file) if the &checkme is present?

How about using the value of &checkme=filename?


Reply With Quote
  #9  
Old October 17th, 2003, 01:00 AM
opus006 opus006 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 65 opus006 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[numbers] RE: RE: input & checkme


Quote:
checkme does mean to ignore the input param...


input file may have a path...as stated in the rules though, output will always be in the same dir as your script.


Quote:
Your script is also required to output a log file on every run, regardless of the 'checkme' setting. This log file should contain a line read in from the input file, then all solutions you find (each on a seperate line). The log file will then contain the next line from the input file, and all its solutions, and so on. This log file should be output to the directory your script resides in and will be called {inputfile}.out. For example, if the input file is named input.txt, the output file will be called input.txt.out.


Are we to prompt for a log filename if the checkme flag is set?

Reply With Quote
  #10  
Old October 17th, 2003, 01:14 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
[numbers] RE: input & checkme

Sorry...my bad. No need for a log file when checkme=1. I have updated the rules page.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [numbers] input & checkme


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway