12 September, 2014

Aspirations 2020 - Teaser Round - Sep 12 & 13 - Important Information and FAQ

Dear KSRCE ites

Students who are registered for Aspirations 2020 are iformed to note the below details for TEASER round . . .


Important Information to the Contestants and FAQ
Important Information:
  1. Teams are free to login to the contest environment before the contest start time. However, questions can be viewed only after the contest start time.
  2. Login ID and Password to enter the contest environment is same as the user ID and Password for Aspirations 2020 portal.
  3. If any problem occurs, send email toaspirations@am.amrita.edu.
  4. Judging is completely automated. There is no human judging.
  5. The result generated by the software is final.
  6. In case of any error as the result generated, click on the error to see the explanation.
  7. Common classifications by online judge:
CORRECTthe submission passed all tests: you solved this problem!COMPILER-ERROR There was an error when compiling your program. By clicking on the results, you can inspect the exact error TIMELIMITYour program took longer than the maximum allowed time for this problem. Therefore it has been aborted. This might indicate that your program hangs in a loop or that your solution is not efficient enough.RUN-ERRORThere was an error during the execution of your program. This can have a lot of different causes like division by zero, incorrectly addressing memory (e.g. by indexing arrays out of bounds), trying to use more memory than the limit, etc. Also check that your program exits with exit code 0!NO-OUTPUT Your program did not generate any output. Check that you write to standard out.WRONG-ANSWER The output of your program was incorrect. This can happen simply because your solution is not correct, but remember that your input and output must match with that given in the question.PRESENTATION-ERRORThe output of your program has differences in presentation with the correct results (for example in the amount of whitespace).
Frequently Asked Questions
1) "conio.h" not found and "iostream.h" not found error
Use ANSI standard compilers. Do not use Turbo C or Turbo C++. Many teams are still using conio.h this will not work.
Do not use '.h' with #include in C++.
Example:
#include //This is wrong.
#include //This is correct.
#include //This is wrong.
#include //This is wrong.
2) File Extension of the code
Use the correct extension for the programs. Many teams are submitting solutions with .txt or .docx extensions this will generate a compile time error.
3) Languages used and source code extensions
Permitted Languages and extensions :
· Java - .java
· C - .c
· C++ - .cpp
4) Return value from the main function
The return value from the main function should be zero. Do not use any other return value from main function.
Sample code :
int main()
{
//Your program here
return 0;
}
5) No System calls are permitted.
Do not use any system call library functions, this will give a compiler time error.
6) The output should ONLY contain the details specified in each problem statement. Do not print extra information.
Sample Problem (NEXT PRIME) :
A number is called a prime number if it is greater than 1 and has no divisors other than 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13,.. and so on. Given an integer X, find the smallest prime number which is not less than X
Input:
The first line contains the number of test cases T. T cases follow. Each test case consists of an integer X in a separate line.
Output:
Output T lines, one for each case containing the smallest prime number which is not less than X
Constraints:
1 <= T <= 10
1 <= X <= 1,000,000
Sample Input:
4
8
47
90
1130
Sample Output:
11
47
97
1151
Correct Solution:
#include
#include
using namespace std;
bool isPrime(int x)
{
if(x<=1) return false;
if(x==2) return true;
if(x%2==0) return false;
for(int i=3;i*i<=x;i+=2)
if(x%i==0)
return false;
return true;
}
int main()
{
int T;
scanf("%d",&T);
for(int kase = 1; kase <= T; kase++)
{
int X;
scanf("%d",&X);
while(!isPrime(X)) ++X;
printf("%d\n",X);
}
return 0;
}
Notice that the output contains details as OUTPUT specifications in the problem statement. Make sure that the output do not contain extra white space (newline, tab space, space, etc ) if not specified in the problem statement.
7)If you are using Windows environment you may use CodeBlocks IDE, VisualC++ or any IDE's that use gcc compiler.
DO NOT PRINT PROMT MESSAGES TO ENTER THE NUMBER
DO NOT PRINT EXTRA INFORMATION WITH THE OUTPUT
DO NOT COPY THE CODE FROM INTERNET

Infosys Campus Connect Daily : Tech Kaleidoscope : 2020/028

Dear All Dear Professor, Greetings from Infosys Campus Connect Team!!! Please find below some informat...