[SPOJ] [Luogu] TEST : Life, the Universe, and Everything

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.

原文地址:https://www.cnblogs.com/manziqi/p/8481077.html