SP1 TEST - Life, the Universe, and Everything
SPOJ第一题。因为洛谷新开了Remote Judge想要试试水。
大概就是按题面说的啦,读到42停止即可。
#include <cstdio>
int main() {
int a(0);
scanf("%d", &a);
while(a!=42) {
printf("%d
", a);
scanf("%d", &a);
}
return 0;
}
Use Luogu Remote Judge.