比赛链接:ABC345
先签个到。
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin>>S;
if(S=='<'+string(S.size()-2,'=')+'>')
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
就是上取整。
#include <bits/stdc++.h>
using namespace std;
int main(){
long long X;
cin>>X;
if(X>0)
cout<<(X-1)/10+1&