結果

問題 No.18 うーさー暗号
ユーザー 29da164
提出日時 2020-07-27 09:44:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 64,548 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-28 20:00:28
合計ジャッジ時間 1,069 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(void){
  using namespace std;
  string a;
  int x;
  cin >> a;
  const char* ca = a.c_str();
  for(int i=0;i<a.length();i++){
    if((int)ca[i]-(i%26)-1==64) x=90;
    else x=(int)ca[i]-(i%26)-1;
    cout << (char)x;
    //cout << x;
  }
  return 0;    
}
0