結果

問題 No.3132 暗号メッセージ
ユーザー ttkkggww
提出日時 2025-05-17 17:30:48
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 433 bytes
コンパイル時間 6,872 ms
コンパイル使用メモリ 332,732 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-17 17:30:56
合計ジャッジ時間 6,103 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll = long long;
vector<int> a;
int n;

void solve(){
    auto b = a;
    sort(a.begin(),a.end());
    for(auto &i:a)i %= 26;
    for(auto &i:a)cout<<(char)('A'+i);
    cout<<endl;
}

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cin >> n;
    a = vector<int>(n);
    for(auto &i:a)cin >> i;
    solve();
}
0