Created
November 19, 2016 03:45
-
-
Save whatalnk/32c34eea3e54d1b1ad44b1d38c2f486a to your computer and use it in GitHub Desktop.
AtCoder ABC #033 A. 暗証番号 [C++]
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 <algorithm> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() { | |
int n; | |
cin >> n; | |
if (n % 1111 == 0){ | |
cout << "SAME" << endl; | |
} else { | |
cout << "DIFFERENT" << endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment