蓝桥杯 1083: Hello, world! Easy only once *注意不同OJ系统的问题

基本思想:

没啥,ASCII的弱智题;

 

关键点:

蓝桥OJ的两个特点:

不支持边读入边输出,和PATOJ有区别;

System pause 会导致超时问题;

 

#include<iostream>
#include<stdlib.h>
#include<stdio.h>
#include<vector> 
#include<string>
#include<math.h>
#include<algorithm>
#include<cstring>
using namespace std;
using std::vector;
vector<char>vec;

int main() {
	char s;
	int n;
	while (scanf("%d", &n) != EOF) {
		s = n;
		vec.push_back(s);
	}
	for (auto ele : vec)
		cout << ele;
	//system("pause");
	return 0;
}

  

posted @ 2020-02-06 14:17  暮云林凌  阅读(189)  评论(0)    收藏  举报