結果

問題 No.2034 Anti Lexicography
ユーザー ksukegames
提出日時 2022-08-17 22:09:01
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 809 bytes
コンパイル時間 2,351 ms
コンパイル使用メモリ 142,728 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-05 03:34:07
合計ジャッジ時間 3,781 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <utility>
#include <tuple>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <deque>
#include <unordered_map>
#include <unordered_set>
#include <bitset>
#include <cctype>
#include <cassert>
#include <functional>
#include <numeric>
#include <type_traits>
using namespace std;
#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define coutf(f) cout << fixed << setprecision(f)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()

int main() {
	int n;
	string s;
	cin >> n >> s;
	string ans = "";
	rep(i, n) {
		ans += char('z' - (s[i] - ('a')));
	}
	cout << ans << endl;
	return 0;
}
0