Coding Contest - August 13, 2011
Destructive (Talk | contribs) (added more information) |
|||
Line 1: | Line 1: | ||
{{Event | {{Event | ||
− | |attendees=Kwisatz, | + | |attendees=Kwisatz, |
|eventtype=Event | |eventtype=Event | ||
|subtitle=Demonstrate your coding skills | |subtitle=Demonstrate your coding skills | ||
Line 6: | Line 6: | ||
|contact=Destructive, | |contact=Destructive, | ||
|organizer=syn2cat | |organizer=syn2cat | ||
+ | |recurring=no | ||
|from=2011/08/13 03:00:00 PM | |from=2011/08/13 03:00:00 PM | ||
|till=2011/08/13 06:00:00 PM | |till=2011/08/13 06:00:00 PM | ||
− | |||
|location=Hackerspace, Strassen | |location=Hackerspace, Strassen | ||
|announce=no | |announce=no | ||
Line 15: | Line 15: | ||
|external=no | |external=no | ||
}} | }} | ||
+ | |||
+ | The goal of this contest is not to find the best coder, but to enjoy coding together and to motivate others to start coding. If you can write a "hello world" program in any language, you are welcome. There will be certainly someone to help you to solve the tasks. | ||
+ | |||
+ | We will use the following example problem to make us familiar with the contest system. | ||
+ | |||
+ | |||
+ | Problem: | ||
+ | |||
+ | Mr. Foo has to determine if his students have passed the year. As he has many students which have written many tests, he can't use his calculator, because it would take him too long. He knows that you are a skilled hacker, so he has asked you to make a program to automate his task. | ||
+ | |||
+ | He has '''S''' students. Each student has written '''N''' tests. The test scores ranges from 0 to 60 (both inclusive). A student has passed his year if he has an average score of more or equal to 30. | ||
+ | |||
+ | |||
+ | Input: | ||
+ | |||
+ | You are given an input file. The first line consists of 2 integers: the number of students S (1 <= S <= 1000) and the number of tests N (1 <= N <= 1000). S lines follow, which consists of N integers, representing the scores of a student. | ||
+ | |||
+ | |||
+ | Output: | ||
+ | |||
+ | You have to create an output file which contains one line per student. Each containing 'PASSED' if he has passed his year, otherwise 'FAILED'. |
Revision as of 13:44, 7 August 2011
Coding Contest - August 13, 2011
Demonstrate your coding skills
| |
---|---|
Type of Event: | Event |
From: | 2011/08/13 03:00:00 PM |
Till: | 2011/08/13 06:00:00 PM |
Recurring: | no |
Organizer: | syn2cat |
Cost: | 0 EUR0 $ 0 £ 0 CHF |
Mandatory registration: |
|
Attendees: | Kwisatz Log-in to RSVP |
Contact Person(s): | Destructive (mail) |
Keywords: | |
Location | |
Where: | Hackerspace, Strassen (11, rue du Cimetière, L-8018 Strassen, Luxembourg) |
Map: |
Loading map...
|
Tools | |
QrCode: | |
Add to your calendar: | Download … further results |
Alternate picture: | None |
Announce globally: | no |
"File:" cannot be used as a page name in this wiki.
The goal of this contest is not to find the best coder, but to enjoy coding together and to motivate others to start coding. If you can write a "hello world" program in any language, you are welcome. There will be certainly someone to help you to solve the tasks.
We will use the following example problem to make us familiar with the contest system.
Problem:
Mr. Foo has to determine if his students have passed the year. As he has many students which have written many tests, he can't use his calculator, because it would take him too long. He knows that you are a skilled hacker, so he has asked you to make a program to automate his task.
He has S students. Each student has written N tests. The test scores ranges from 0 to 60 (both inclusive). A student has passed his year if he has an average score of more or equal to 30.
Input:
You are given an input file. The first line consists of 2 integers: the number of students S (1 <= S <= 1000) and the number of tests N (1 <= N <= 1000). S lines follow, which consists of N integers, representing the scores of a student.
Output:
You have to create an output file which contains one line per student. Each containing 'PASSED' if he has passed his year, otherwise 'FAILED'.