Author |
Message |
saltpro15
|
Posted: Wed Nov 26, 2008 12:33 pm Post subject: Dwite Round 2 Q 1 |
|
|
ok I got full marks for this so here it is. I really think they need to step up the challenge of these questions...I'm only in gr10 and this took like 6 min to get-.-
Description: |
|
Download |
Filename: |
Q1 DWITE 2.T |
Filesize: |
404 Bytes |
Downloaded: |
390 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
CodeMonkey2000
|
Posted: Wed Nov 26, 2008 12:34 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
Question 1 is suppose to be easy.
|
|
|
|
|
|
S_Grimm
|
Posted: Wed Nov 26, 2008 12:50 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
Question 1 is always easy. I've seen someone code the first question in under a minute (Different contest, same idea, fast typer).
If you got the last question with full marks, it would be better to post that.
|
|
|
|
|
|
Insectoid
|
Posted: Wed Nov 26, 2008 1:12 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
Why don't you post the actual question above your answer?
|
|
|
|
|
|
Tony
|
Posted: Wed Nov 26, 2008 1:36 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
The question was essentially to count the number of a certain character in a string. Though because there were only 2 possible characters, and because those characters came in continuous blocks, then instead of
Turing: |
for r : 1 .. 7
var string1 : string
get : input, string1
var counttotal : int := 0
for i : 1 .. length (string1 )
if string1 (i ) = "#" then
counttotal + = 1
end if
end for
put : output,counttotal ..
end for
|
you could have done
Turing: |
var temp : string
for r : 1 .. 7
get : input, temp
put : output, index(temp, ".") - 1
end for
|
Q1 and Q2 are usually the "make sure you know how to read/write your data" questions + speed bonuses. The challenges are in Q3~4~5. Though some schools don't get pass Q2, so we try to have the difficulty spread out, so that everyone can accomplish at least something.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
A.J
|
Posted: Wed Nov 26, 2008 1:46 pm Post subject: Re: Dwite Round 2 Q 1 |
|
|
saltpro15 wrote:
ok I got full marks for this so here it is. I really think they need to step up the challenge of these questions...I'm only in gr10 and this took like 6 min to get-.-
well....relative to others thats actually bad...
some teams finished all 5 questions in 15 minutes......
|
|
|
|
|
|
Horus
|
Posted: Wed Nov 26, 2008 8:49 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
lol first question took me 1 hour to do, and i'm in gr 12 o.O
basically I thought ur only suppose to have 2 sets of input instead of 5. so with those 2 sets I didn't uses arrays. and in the end my friend told me it's 5, so I copy and pasted the code 3 more times, and then I forgot which variable is which >.>
2nd and 3rd question took me half an hour each although I only got 4/5 on 3rd question...
I'm a slow coder...
|
|
|
|
|
|
Tony
|
Posted: Thu Nov 27, 2008 12:13 am Post subject: Re: RE:Dwite Round 2 Q 1 |
|
|
Horus @ Wed Nov 26, 2008 8:49 pm wrote: basically I thought ur only suppose to have 2 sets of input instead of 5
Typically, it is always 5.
You might want to review some of the submissions to get ideas as to how to approach the problem in different ways.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
Horus
|
Posted: Thu Nov 27, 2008 12:20 am Post subject: RE:Dwite Round 2 Q 1 |
|
|
lol I didn't know at that time. but now I know.
The coding is actually quite easy, longest time is to get the compiler to run with school's slow computer (1 GHz, 256 RAM, and a very laggy virus scan)
Next time i'll do much better i hope...
|
|
|
|
|
|
Nick
|
Posted: Thu Nov 27, 2008 3:03 am Post subject: Re: RE:Dwite Round 2 Q 1 |
|
|
AV @ Wed Nov 26, 2008 12:50 pm wrote: If you got the last question with full marks, it would be better to post that.
Description: |
|
Download |
Filename: |
5.t |
Filesize: |
862 Bytes |
Downloaded: |
365 Time(s) |
|
|
|
|
|
|
saltpro15
|
Posted: Thu Nov 27, 2008 1:28 pm Post subject: Re: Dwite Round 2 Q 1 |
|
|
A.J @ Wed Nov 26, 2008 wrote: saltpro15 wrote:
ok I got full marks for this so here it is. I really think they need to step up the challenge of these questions...I'm only in gr10 and this took like 6 min to get-.-
well....relative to others thats actually bad...
some teams finished all 5 questions in 15 minutes......
haha because they cheated because they emailed the questions at 2:30, but I don't want to get banned for saying bad stuff about other teams soo, w/e I'm only in gr10, my gr11 teammate got Q5, I enjoyed working on it with him, I think more questions like would make DWITE a little more fun, just one opinion, and by my count about 30+ teams didnt get this question right so who are you to call me bad? Whatever, not dissing, just stating facts, hope they don't ban me for this
|
|
|
|
|
|
saltpro15
|
Posted: Thu Nov 27, 2008 1:33 pm Post subject: Re: RE:Dwite Round 2 Q 1 |
|
|
Nick @ Thu Nov 27, 2008 wrote: AV @ Wed Nov 26, 2008 12:50 pm wrote: If you got the last question with full marks, it would be better to post that.
lol I'm only in gr10 man! give me a bit of a break:P my teammate did eventually get Q5 though, I'll ask him for permission to post it
|
|
|
|
|
|
DanielG
|
Posted: Thu Nov 27, 2008 7:46 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
the contest was a bit too easy, but not bad overall. and even if you did get top marks, there is no point in posting your solution since anyone can just see submitted solutions to dwite (through past contests).
|
|
|
|
|
|
Tony
|
Posted: Thu Nov 27, 2008 7:58 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
Well if one wants to discuss their solution, they are welcome to repost it on the forums.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
riveryu
|
Posted: Thu Nov 27, 2008 8:00 pm Post subject: RE:Dwite Round 2 Q 1 |
|
|
I think DWITE is fine the way it is right now.
Although the difficulty of questions doesn't seem consistent from round to round anyways (just look at last round's #5), unless its meant to be in this way.
|
|
|
|
|
|
|