結果
| 問題 |
No.8116 TCP ソート
|
| コンテスト | |
| ユーザー |
Ponzu
|
| 提出日時 | 2025-04-03 06:35:47 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 1,295 ms |
| コンパイル使用メモリ | 116,228 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-04-03 06:35:50 |
| 合計ジャッジ時間 | 2,599 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 16 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<map>
using namespace std;
int main()
{
string s;cin>>s;
map<char,int> ord;
ord['T'] = 0;ord['C'] = 1,ord['P'] = 2;
sort(s.begin(),s.end(),[&](char a,char b){
return ord[a] < ord[b];
});
cout << s << endl;
}
Ponzu