結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2024-09-23 02:48:28 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 1,876 ms |
コンパイル使用メモリ | 193,512 KB |
最終ジャッジ日時 | 2025-02-24 11:39:57 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)s; i < (int)e; i++) int main() { cin.tie(nullptr); string S; cin >> S; int len = S.size(); rep(i, 0, len) { S[i] = (S[i] - 'A' - i - 1 + 260000) % 26 + 'A'; } cout << S << '\n'; }