chore: add fyi program
parent
117d023513
commit
3748695e70
|
@ -0,0 +1,16 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
int main(){
|
||||
string number = "";
|
||||
cin >> number;
|
||||
if (number.substr(0,3) == "555"){
|
||||
cout << "1" << endl;
|
||||
}
|
||||
else{
|
||||
cout << "0" << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue