結果

問題 No.18 うーさー暗号
ユーザー おんそくちゃん
提出日時 2017-01-10 03:28:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 55,568 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-18 00:21:02
合計ジャッジ時間 977 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.18 うーさー暗号
#include<iostream>
#include<string.h>

int main() {
	int str;
	char S[1024];
	std::cin >> S;
	str = strlen(S);
	for (int i=0,j=0; j < str; i++,j++) {
		{
			S[j] -= i+1;
			if (S[j] == 64) S[j] += 26;
			if (i > 25) {
				i = 0; S[j] += 24;
			}
		}
	}
	std::cout << S << std::endl;
	return 0;
}
0