結果

問題 No.18 うーさー暗号
ユーザー 16fs321a
提出日時 2017-07-22 01:39:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 765 ms
コンパイル使用メモリ 65,312 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 04:42:15
合計ジャッジ時間 1,608 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string.h>

using namespace std;

int main(){
	char S[1024];
	cin >> S;

	for (int i = 0; i < strlen(S); i++){
		S[i] -= (i%26 + 1);
		if (S[i] < 'A')	S[i] = 'Z';
		cout << S[i];
	}

	cout << endl;

	return 0;
}
0