結果

問題 No.18 うーさー暗号
ユーザー Eclair1015
提出日時 2018-07-08 14:36:55
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 643 ms
コンパイル使用メモリ 59,864 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 04:41:00
合計ジャッジ時間 1,113 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include<string>

using namespace std;
int main() {
	string s;
	cin >> s;
	int size = s.size();
	for (int i = 0; i < size; i++) {
		if (s[i] == 'A') {
			s[i] = 'Z';
		}
		s[i] -= (i+1);
	}
	cout << s << endl;
}

0