辽宁师范大学 • 张大为@https://daweizh.github.io/noip/
#include <iostream> int main() { std::cout << "Hello, World!" << std::endl; return 0; }
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; cout << b << endl; return 0; }
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; printf("%8d %8d %8d",a,b,c); return 0; }
#include <iostream> using namespace std; int main() { float a; cin >> a ; printf("%.3f",a); return 0; }
#include <iostream> using namespace std; int main() { double a; cin >> a ; printf("%.12f",a); return 0; }
#include <iostream> using namespace std; int main() { char a; int b; float c; double d; cin >> a >> b >> c >> d; printf("%c %d %f %f",a,b,c,d); return 0; }
#include <iostream> using namespace std; int main() { double a; cin >> a ; printf("%f\n",a); printf("%.5f\n",a); printf("%e\n",a); printf("%g\n",a); return 0; }
#include <iostream> using namespace std; int main(){ char c; cin >> c; cout << " " << c << endl; cout << " " << c << c << c << endl; cout << c << c << c << c << c << endl; return 0; }
#include <iostream> int main() { char ch; scanf("%c", &ch); printf(" %c\n",ch); printf(" %c%c%c\n",ch,ch,ch); printf("%c%c%c%c%c\n",ch,ch,ch,ch,ch); printf(" %c%c%c\n",ch,ch,ch); printf(" %c\n",ch); return 0; }
#include <iostream> using namespace std; int main(){ cout << " ********" << endl; cout << " ************" << endl; cout << " ####....#." << endl; cout << " #..###.....##...." << endl; cout << " ###.......###### ### ### ### ###" << endl; cout << " ........... #...# #...# #...# #...#" << endl; cout << " ##*####### #.#.# #.#.# #.#.# #.#.#" << endl; cout << " ####*******###### #.#.# #.#.# #.#.# #.#.#" << endl; cout << " ...#***.****.*###.... #...# #...# #...# #...#" << endl; cout << " ....**********##..... ### ### ### ###" << endl; cout << " ....**** *****...." << endl; cout << " #### ####" << endl; cout << " ###### ######" << endl; cout << "############################################################## ##################################" << endl; cout << "#...#......#.##...#......#.##...#......#.##------------------# #...#......#.##------------------#" << endl; cout << "###########################################------------------# ###############------------------#" << endl; cout << "#..#....#....##..#....#....##..#....#....##################### #..#....#....#####################" << endl; cout << "########################################## #----------# ############## #----------#" << endl; cout << "#.....#......##.....#......##.....#......# #----------# #.....#......# #----------#" << endl; cout << "########################################## #----------# ############## #----------#" << endl; cout << "#.#..#....#..##.#..#....#..##.#..#....#..# #----------# #.#..#....#..# #----------#" << endl; cout << "########################################## ############ ############## ############" << endl; return 0; }