题解 SP1 【TEST - Life, the Universe, and Everything】
include<cstdio>
include<cstdlib>
include<cstring>
include<iostream>
using namespace std; int main(){ int a; for(;scanf("%d",&a)!=EOF;){ //防止TLE; if(a==42)break; //若a=42,跳出循环; cout<<a<<endl; //输出a。 } return 0; //走人! }