結果
問題 |
No.8116 TCP ソート
|
ユーザー |
![]() |
提出日時 | 2025-04-03 06:45:10 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 1,560 ms |
コンパイル使用メモリ | 114,944 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-03 06:45:13 |
合計ジャッジ時間 | 2,626 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 16 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<map> using namespace std; int main() { string s;cin>>s; string t = "ABDEFGHIJKLMNOQRSTCPUVWXYZ"; map<char , int> ord; for(int i=0;i<26;++i)ord[t[i]] = i; sort(s.begin(),s.end(),[&](char a,char b){ return ord[a] < ord[b]; }); cout << s << endl; }