amdocs code mania rules

3
8/18/12 Amdocs Code Mania Rules 1/3 www.amdocscodemania.com/Rules.html Amdocs Code Mania 2012 Official Competition Rules and Regulations Amdocs proudly presents Code Mania 2012, the coding competition in C, C++ and Java languages. The Amdocs Code Mania portal: · The Amdocs Code Mania portal can be accessed by visiting the link www.amdocscodemania.com · The Amdocs Code Mania portal uses Google authentication for login. You will need to use your Gmail id and password to login. During the process of signing in, you will be redirected to Google’s authentication page and once Google has successfully authenticated you, your session will be redirected back to our portal · Amdocs uses your Gmail id and your name from Google purely for identification purposes · Once you login successfully, there are four parts to the portal – access to the problem statement, access to the rules of the competition, ability to submit & validate your solution and ability to view your submissions General instructions: · The problem statement would be published at 10 AM on the portal on the day of the competition. You can access it by clicking the “Problem Statement” icon · You will have 5 hours to provide your solution from the time the problem is published · You are free to use C, C++ or Java language to solve the problem. Irrespective of the language you choose, your solution should be a single file that can be executed at command line. · The naming convention of your solution file should be name_surname_contest-id.language- extension where name is your name, surname is your surname, contest-id is 29812 and language extension would be .c, .cpp or .java depending on the language you choose · As soon as the problem is solved and tested by you in your local environment, it is mandatory for you to compress your file using WinZip. The portal will only allow submission of solutions that are compressed (file extension .zip). Your .zip file should only contain your solution file and not folders, directories or sub-directories · On the portal, click on “Submit Solution” button, click “Browse…” to select your zip file and click “Upload File” button to submit your code. View all your submissions in “My Submissions” page · As soon as you have successfully uploaded your .zip file containing your solution, you need to compile and execute your latest submission on the portal to qualify for the competition. · After successful upload of your file, click on “Compile” button in the “My Submissions” page to compile your code in our test environment. If your code compiles successfully in our environment, you will receive a “Compilation Succeeded” notification on the “My Submissions” page. If there are compilation errors, the same would be displayed to you and the status of your submission would be marked as “Compilation Failed” · Multiple submissions are allowed. The latest one received during the competition would be the one that the portal would compile & execute when you click the appropriate buttons · Once compile step is successful, you need to click the “Execute” button in the “My Submissions” page to execute your code in our test environment against our test inputs. If your code executes successfully against our test cases, you will receive a “Execution Succeeded” notification on the “My Submissions” page. If the execution fails (for reasons like your output not matching our output, time-out in case output does not get produced in 60 seconds, run time exceptions etc.), you will get the notification of the same with the appropriate error and the status of your submission would be marked as “Execution Failed” · You should use only the standard libraries for each language and desist from using 3 rd party library functions in your solution · It is mandatory for you to successfully compile & execute your code in our environment in order

Upload: subhajit-sahu

Post on 04-Jul-2015

892 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Amdocs code mania rules

8/18/12 Amdocs Code Mania Rules

1/3www.amdocscodemania.com/Rules.html

Amdocs Code Mania 2012Official Competition Rules and Regulations

Amdocs proudly presents Code Mania 2012, the coding competition in C, C++ and Java languages.

The Amdocs Code Mania portal:

· The Amdocs Code Mania portal can be accessed by visiting the link www.amdocscodemania.com

· The Amdocs Code Mania portal uses Google authentication for login. You will need to use your

Gmail id and password to login. During the process of signing in, you will be redirected to

Google’s authentication page and once Google has successfully authenticated you, your session

will be redirected back to our portal

· Amdocs uses your Gmail id and your name from Google purely for identification purposes

· Once you login successfully, there are four parts to the portal – access to the problem

statement, access to the rules of the competition, ability to submit & validate your solution and

ability to view your submissions

General instructions:

· The problem statement would be published at 10 AM on the portal on the day of the

competition. You can access it by clicking the “Problem Statement” icon

· You will have 5 hours to provide your solution from the time the problem is published

· You are free to use C, C++ or Java language to solve the problem. Irrespective of the language

you choose, your solution should be a single file that can be executed at command line.

· The naming convention of your solution file should be name_surname_contest-id.language-

extension where name is your name, surname is your surname, contest-id is 29812 and

language extension would be .c, .cpp or .java depending on the language you choose

· As soon as the problem is solved and tested by you in your local environment, it is mandatory

for you to compress your file using WinZip. The portal will only allow submission of solutions

that are compressed (file extension .zip). Your .zip file should only contain your solution file

and not folders, directories or sub-directories

· On the portal, click on “Submit Solution” button, click “Browse…” to select your zip file and

click “Upload File” button to submit your code. View all your submissions in “My Submissions”

page

· As soon as you have successfully uploaded your .zip file containing your solution, you need to

compile and execute your latest submission on the portal to qualify for the competition.

· After successful upload of your file, click on “Compile” button in the “My Submissions” page to

compile your code in our test environment. If your code compiles successfully in our

environment, you will receive a “Compilation Succeeded” notification on the “My Submissions”

page. If there are compilation errors, the same would be displayed to you and the status of your

submission would be marked as “Compilation Failed”

· Multiple submissions are allowed. The latest one received during the competition would be the

one that the portal would compile & execute when you click the appropriate buttons

· Once compile step is successful, you need to click the “Execute” button in the “My

Submissions” page to execute your code in our test environment against our test inputs. If your

code executes successfully against our test cases, you will receive a “Execution Succeeded”

notification on the “My Submissions” page. If the execution fails (for reasons like your output

not matching our output, time-out in case output does not get produced in 60 seconds, run time

exceptions etc.), you will get the notification of the same with the appropriate error and the

status of your submission would be marked as “Execution Failed”

· You should use only the standard libraries for each language and desist from using 3rd party

library functions in your solution

· It is mandatory for you to successfully compile & execute your code in our environment in order

Page 2: Amdocs code mania rules

8/18/12 Amdocs Code Mania Rules

2/3www.amdocscodemania.com/Rules.html

to be eligible to win the competition. All those entries of participants who have not done this

step would not be considered for final evaluation

· Once you have a status of “Compilation Succeeded” and “Execution Succeeded” on the “My

Submissions” page, do NOT try to compile and execute the same code again because it would

update the timestamp of your submission. Remember that judges would consider you latest

(and not your earliest) executed solution to declare the winners

Common Rules for all languages:

· Input to your program would have to be read from a file and output from your program should

be written into a file (there would be no inputs / outputs to console)

· Your program should accept 2 parameters (as runtime command-line arguments), both

filenames. The first argument would be the input file name and second argument would be the

output filename

· Note that only filename will be accepted (your program is not supposed to expect any directory

path information). Your program should look for the specified input file and output file from

the location where your program exists (current working directory) and not from any kind of

default working directory that is set in your IDE (e.g., Eclipse’s workspace)

· The input file can have multiple test cases one after the other & your program should handle

that

· Your program should write into the output file as expected in the problem statement without

any additional whitespaces

· The first three correct solutions would declared as winners

Rules for C language submissions:

· Solution should be restricted to a single “.c” file named as name_surname_29812.c

· The language extension should be lower case c

· An example of filename would be raghav_rathore_29812.c

· The portal uses cc compiler (gcc version 4.1.2 20080704 {Red Hat 4.1.2-50}) on Linux (Red Hat

Enterprise Linux Server release 5.6 {Tikanga}) for evaluating your solution. So please test

(compile and execute) your code on a similar Linux environment before submitting to avoid

compilation / runtime errors during evaluation

Rules for C++ language submissions:

· Solution should be restricted to a single “.cpp” file named as name_surname_29812.cpp

· Solution should have only one class in it

· You may use STL specific functions as supported by GNU-provided GCC/G++ compilers (e.g.,

usage of #include <algorithm> should include “using namespace std;”)

· The language extension should be lower case cpp

· An example of filename would be raghav_rathore_29812.cpp

· The portal uses cc compiler (gcc version 4.1.2 20080704 {Red Hat 4.1.2-50}) on Linux (Red Hat

Enterprise Linux Server release 5.6 {Tikanga}) for evaluating your solution. So please test

(compile and execute) your code on a similar Linux environment before submitting to avoid

compilation / runtime errors during evaluation

Rules for Java language submissions:

· Solution should be provided in Java 1.4 or higher

· Solution should be restricted to a single “.java” file named as name_surname_29812.java

· Ensure that your solution file is in the default package. Do not create packages like

“com.amdocs.codemania” etc. Code submitted with such packages wouldn’t be handled

· Do not use “.class.” in your java code. This could cause your code to hang during its execution

on the portal

· Do not resort to ungraceful exit from your code like using system.exit() as this would result in

your code being disqualified for evaluation

Page 3: Amdocs code mania rules

8/18/12 Amdocs Code Mania Rules

3/3www.amdocscodemania.com/Rules.html