結果

問題 No.18 うーさー暗号
コンテスト
ユーザー ふっぴー
提出日時 2017-03-30 16:43:11
言語 C90
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
WA  
実行時間 -
コード長 307 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 36,864 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-24 23:18:11
合計ジャッジ時間 1,272 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <stdlib.h>
#define INF 1000000000;

int main(void){
	char s[1025];
	scanf("%s",s);
	int i=0;
	while(s[i]!='\0'){
		if(s[i]-i%26-1>'A'){
			s[i]=s[i]-i%26-1;
		}else{
			s[i]=s[i]-i%26+25;
		}
		i++;
	}
	printf("%s\n",s);
}
0