0% found this document useful (0 votes)
246 views

ch1 and 2 Codeforces

Uploaded by

sarammnasir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
246 views

ch1 and 2 Codeforces

Uploaded by

sarammnasir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 22
A. Hello World time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output Hello, Champy. Print "Hello World" without quotes. Input This problem has no input =( Output Print "Hello World" without quotes. By abd-alaziez, contest: LOI23 Day 1 Practice, problem: (A) Hello World, Accep #include using namespace std; int main() { cout<<"Hello World"; return 0;} HOME TOP CATALOG CONTESTS GYM PROBLEMSET GROUPS RATING EDU AP PROBLEMS SUBMITCODE MYSUBMISSIONS STATUS STANDINGS CUSTOM INVOCATION A. Solid Programmer time limit per test: 2 seconds memory limit per test: 256 megabyte: input: standard input output: standard output You want to be a Solid Programmer. Print "I'll Be a Solid Programmer” to prove that. Watch out!! Print it in the same way it is written =D Input There is no input in this problem, too. Output Print "I'll Be a Solid Programmer", without quotes. By abd-alaziez, contest: LOI23 Day 1 Homework, problem: (A) Solid Programmer, Accepted, #, Copy #include using namespace std; int main() cout<<"I'll Be a Solid Programmer"; return 0;} SpOTEGT HOME TOP CATALOG CONTESTS GYM PROBLEMSET GROUPS RATING EDU APL. CALENDAR HELP ICC CHALLENGE SE (ROBE) suesrone wasessons sts sHONCS CsTOMDOCATON A. Say Hello With C++ time limit per test: 1 second ‘memory limit per test: 256 megabytes Input: standard input output: standard output Given a name S. Print “Hello, (name)" without parentheses. Input Only one line containing a string S. Output Print "Hello, * without quotes, then print nome. Example input * output 5 By abd-alaziez, contest: LOI23 Day 2 Practice, problem: (A) Say Hello With C++, Accepted, #, Copy #include using namespace std; int main() {string a; cin>>a; cout<<"Hello, "<> Vardablens For example, to read a character followed by a double: char ch double « cin >> cho Printing To print a data type, use the following syntax: cout << VardableNane: For example, to print a character followed by a double: char ch = ‘4° double 4 = 234.432 Input Only one line containing the following space-separated values: int, long long, char, float and double respectively Output Print each element on a new line in the same order it was received as input Dont print any extra spaces. Example input 3. 12345678912345 @ 934.23 14049.30693 output 12sas67a912345, OS When Who Problem Lang By abd-alaziez, contest: LOI23 Day 2 Practice, problem: (B) Basic Data Types, A #include using namespace std; int main() {int a; long long b; char c; float d; double e; cin>>a>>b>>c>>d>>e; cout< using namespace std; int main() { Jong long a.b,c,d,e: cins>a>>; = Meecccendlccacc" * teehee" = Meedecendl< using namespace std; : int main() | { long long a,b,c; | cin>>a>>b; c=a*b: cout< using namespace std; int main() {int a,b,c; cin>>a>>b; c=atb; cout< using namespace std; int main() {float 1,b; cin>>1; b=1/2; cout< using namespace std; int main() {int x,y,b; cin>>x>>y; b=x+(y/2); cout< using namespace std; int main() {int c,x,y, cin>>x>>y>>z x C=X*xX+y*Z; cout<

You might also like