题解 SP1 【TEST - Life, the Universe, and Everything】

· · 题解

这道题是搞笑的!!!

AC代码:

#include <iostream>
using namespace std;
int main(){
    int a;
    while(cin>>a){
        if(a==42)return 0;
        else cout<<a<<endl;
    }
    return 0;
}