Skip to content

Instantly share code, notes, and snippets.

@mikebsg01
Last active March 12, 2017 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikebsg01/ca3d351843adfab2e9ac to your computer and use it in GitHub Desktop.
Save mikebsg01/ca3d351843adfab2e9ac to your computer and use it in GitHub Desktop.
Entrenamiento IOI - Etapa #2 - Problem: A Game With Numbers - Judge: SPOJ - 12/31/2014 - Puntaje: 100% (AC) - Mathematics.
#include <iostream>
using namespace std;
unsigned long long int N;
int main(){
cin>>N;
if(N%10==0)
cout<<2<<"\n";
else
cout<<1<<"\n"<<N%10<<"\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment