結果

問題 No.18 うーさー暗号
ユーザー Hentci
提出日時 2022-02-24 16:33:18
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 193,044 KB
最終ジャッジ日時 2025-01-28 01:36:32
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  for(int i = 0;i < (int)s.size();i++){
    s[i] -= ((i + 1) % 26);
    if(s[i] < 'A') s[i] += 'A';
  }

  cout << s << "\n";

  return 0;
}
0