Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created November 19, 2016 03:45
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 whatalnk/32c34eea3e54d1b1ad44b1d38c2f486a to your computer and use it in GitHub Desktop.
Save whatalnk/32c34eea3e54d1b1ad44b1d38c2f486a to your computer and use it in GitHub Desktop.
AtCoder ABC #033 A. 暗証番号 [C++]
#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