Tuesday, 23 September 2014
Saturday, 20 September 2014
REGARDING INFOSYS ASPIRATION2020 FINAL CONTEST EXAM
Dear Students,
Infosys Aspiration2020 contest final test will be on 24/SEP/2014 timings: 10 to 12 am. All the registered students are requested to attend the exam without fail. The venue will be informed shortly. Pls keep check our blog regularly for updates.........ALL THE BEST........
Infosys Aspiration2020 contest final test will be on 24/SEP/2014 timings: 10 to 12 am. All the registered students are requested to attend the exam without fail. The venue will be informed shortly. Pls keep check our blog regularly for updates.........ALL THE BEST........
Wednesday, 17 September 2014
sample 2nd program
#include <iostream>
using namespace std;
int main()
{
int a[100],b[100],t;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>a[i]>>b[i];
}
for(int i=1;i<=t;i++)
{
if(a[i]>b[i])
cout<<"Participant 1 wins"<<'\n';
else
cout<<"Participant 2 wins"<<'\n';
}
return 0;
}
using namespace std;
int main()
{
int a[100],b[100],t;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>a[i]>>b[i];
}
for(int i=1;i<=t;i++)
{
if(a[i]>b[i])
cout<<"Participant 1 wins"<<'\n';
else
cout<<"Participant 2 wins"<<'\n';
}
return 0;
}
Aspiration2020 FAQ
Important Information:
- 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.
- Login ID and Password to enter the contest environment is same as the user ID and Password for Aspirations 2020 portal.
- If any problem occurs, send email to aspirations@am.amrita.edu.
- Judging is completely automated. There is no human judging.
- The result generated by the software is final.
- In case of any error as the result generated, click on the error to see the explanation.
- Common classifications by online judge:
CORRECT
the 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
TIMELIMIT Your 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-ERROR There 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-ERROR The output of your program has differences in presentation with the correct results (for example in the amount of whitespace).
COMPILER-ERROR There was an error when compiling your program. By clicking on the results, you can inspect the exact error
TIMELIMIT Your 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-ERROR There 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-ERROR The 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 <iostream.h> //This is
wrong.
#include <iostream>
//This is correct.
#include <graphics.h> //This is
wrong.
#include <checks.h>
//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.
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.
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
OUTPUTsample program
#include <iostream>
int roundoff(float a)
{
return a+0.5;
}
using namespace std;
int main()
{
int i,n;
float a[20],b[20];
float c,s;
cin>>n;
for(i=0;i<n;i++)
{
cin>>a[i]>>b[i];
}
for(i=0;i<n;i++)
{
s=((a[i]+b[i])/2);
c=roundoff(s);
if(c<s)
c=c+1;
cout<<c<<endl;
}
return 0;
}
int roundoff(float a)
{
return a+0.5;
}
using namespace std;
int main()
{
int i,n;
float a[20],b[20];
float c,s;
cin>>n;
for(i=0;i<n;i++)
{
cin>>a[i]>>b[i];
}
for(i=0;i<n;i++)
{
s=((a[i]+b[i])/2);
c=roundoff(s);
if(c<s)
c=c+1;
cout<<c<<endl;
}
return 0;
}
Monday, 8 September 2014
Subscribe to:
Posts (Atom)