September 2021 cohort is finalized with 45 amazing folks. For future cohorts Join the waitlist

TEST Solution



#include <cstdio>
#include <iostream>

using namespace std;

int main( int argc, char * argv[] ) {
	int x;
	while(1) {
		scanf("%d", &x);
		if( x == 42 ) {
			break;
		}
		else {
			printf("%d\n", x);
		}
	}
	return 0;
}

470+ Competitive Programming Solutions

If you like what you read subscribe to my newsletter.

I write essays on various engineering topics and share it through my weekly newsletter 👇