Skip to content

Instantly share code, notes, and snippets.

@dilijev
Created September 2, 2012 22:07
Show Gist options
  • Save dilijev/3605037 to your computer and use it in GitHub Desktop.
Save dilijev/3605037 to your computer and use it in GitHub Desktop.
My solution to Sphere's TEST problem.
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main() {
string str;
while(cin>>str) {
if(!str.compare("42")) break;
cout << str << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment