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:
  #1  
Old November 1st, 2003, 02:00 PM
LAMASE LAMASE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rome - Italy
Posts: 21 LAMASE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] Submitting the contest: last question

Quote:
Your script will know it is called with this method when I append &checkme=1 to the URL. 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. 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.

Quote:
Sorry for the confusion above, but there is no need to output a log file when checkme=1.


I don't speak english very well, and this confused me.

Today is 1 Nov 2003, deadline is on 3, so i have to send my script! I have some problems understanding this: what to ouput, what to write in logfile?

checkme != 1
write the total
log file with the results

checkme == 1
write what?
log file? with only the results?

I'm VERY CONFUSED

Thanks all

Reply With Quote
  #2  
Old November 1st, 2003, 03:21 PM
Matt Matt is offline
Contributing User
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 12 m 16 sec
Reputation Power: 7
[numbers] RE: Submitting the contest: last question

if(checkme==1) {
/* output a HTML form that I can
enter 6 numbers and a target number
into. This will enable me to
check any single problem.
No need to output a log file */
} elseif (checkme != 1) {
/* output the total number of solutions.
also output a log file with results. */
}

Reply With Quote
  #3  
Old November 1st, 2003, 05:01 PM
-vertigo- -vertigo- is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Louth, Lincolnshire
Posts: 314 -vertigo- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 3
[numbers] RE: Submitting the contest: last question

To clarify, if '&checkme=1' is appended we must present a form for Matt to enter a single problem, which then gets solved when the form gets submitted, and I assume that this solving gets shown on-screen, without a logfile.

However, if 'checkme' is not there, we should expect an input file to be provided, by something something like '&input=somefile.txt', and only then should we write a logfile.

This is how I understand it. This isn't rocket-science.

And in the logfile we must show the problem and then all the solutions on the lines below.

Reply With Quote
  #4  
Old November 2nd, 2003, 12:02 PM
LAMASE LAMASE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rome - Italy
Posts: 21 LAMASE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[numbers] RE: Submitting the contest: last question

Thanks! And now, really the last
Quote:
Your script should then show me everything it figures out with those numbers


only good and no-duplicated results? Or we have to output something like

found 70 candidate results.
...
.. // results with duplicates
..
...

after removing duplicates i have 20 results:
...
.. // non-duplicated ones
...
...

?
_____________________________
And, second: if checkme==1 we will have no input file, only the set of numbers you will enter, isn't it?

after this i submit my script =)

Reply With Quote
  #5  
Old November 2nd, 2003, 05:17 PM
Matt Matt is offline
Contributing User
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 12 m 16 sec
Reputation Power: 7
[numbers] RE: Submitting the contest: last question

Just the good final results need to be in the log file...

Reply With Quote
  #6  
Old November 3rd, 2003, 12:45 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: 25
[numbers] RE: Submitting the contest: last question

Quote:
...Your script is also required to output a log file on every run, regardless of the 'checkme' setting....


Quote:
if(checkme==1) {
/* output a HTML form that I can
enter 6 numbers and a target number
into. This will enable me to
check any single problem.
No need to output a log file */
} elseif (checkme != 1) {
/* output the total number of solutions.
also output a log file with results. */
}


These two statements contradict each other.

Reply With Quote
  #7  
Old November 3rd, 2003, 12:48 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: 25
[numbers] RE: Submitting the contest: last question

Actually, never mind... just read this:

Quote:
Sorry for the confusion above, but there is no need to output a log file when checkme=1.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [numbers] Submitting the contest: last question


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek