返回列表 發帖
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.     cin.tie(0);
  6.     cin.sync_with_stdio(0);
  7.     string str="01234567891011";


  8.     cout<<str.substr(5)<<endl;
  9.     cout<<str.substr(2)<<endl;
  10.     cout<<str.substr(3,2)<<endl;
  11.     cout<<str.substr(7,1)<<endl;

  12.     return 0;
  13. }
複製代碼
hahahahahahahaha

TOP

返回列表