chore: add fyi program

main
CrimsonTome 2023-02-06 10:09:20 +00:00 committed by Rowan Clark
parent 117d023513
commit 3748695e70
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 16 additions and 0 deletions

16
fyi/main.cpp Normal file
View File

@ -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;
}