3 条题解

  • 1
    @ 2023-7-28 2:26:51

    可以理解一下sort函数用法

    #include<iostream>
    #include<algorithm>
    using namespace std;
    int main() {
    	int n;
    	cin >> n;
    	while (n--) {
    		string temp;
    		cin >> temp;
    		sort(temp.begin(), temp.end());
    		cout << temp[0]<<" "<<temp[1]<<" "<<temp[2]<<endl;
    	}
    }
    

    信息

    ID
    120
    时间
    3000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    2313
    已通过
    528
    上传者