Files
OI-source/history_source/ccf 入门篇/U5/5.4.7.cpp
2023-08-03 09:22:52 +08:00

23 lines
327 B
C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
string password,sr;
char sr2;
password="NOIP@CCF";
while(true)
{
cout<<">>> ";
cin>>sr2;
if(sr2=='N') break;
else
{
cin>>sr;
if(sr==password) {cout<<"Succrss";break;}
else cout<<"Sorry"<<endl;
}
}
if(sr==password) while(true);
}