Last active
March 12, 2017 21:48
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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