摘要: 注意一下::::A Z 65--90 a z 97 122 #include<iostream> using namespace std; int main() { string str; int len,flag,i; while(getline(cin,str)){ // cout<<str<< 阅读全文
posted @ 2019-03-21 22:02 Hello_World2020 阅读(286) 评论(0) 推荐(0) 编辑
摘要: //三角形的选择 #include<iostream> using namespace std; int a[101]; int i,j,k,nmm,ans,n; void solve(){ for(i=0;i<n-2;i++){ for(j=i+1;j<n-1;j++){ for(k=j+1;k< 阅读全文
posted @ 2019-03-21 11:40 Hello_World2020 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 二分法,这一题有点小难度。。。 首先,任意找一个数字运用二分法, #include<iostream> using namespace std; typedef long long ll; const ll inf = 0x3f3f3f3f; const int maxn = 1e5 + 10; i 阅读全文
posted @ 2019-03-21 10:26 Hello_World2020 阅读(173) 评论(0) 推荐(0) 编辑