結果
| 問題 |
No.18 うーさー暗号
|
| コンテスト | |
| ユーザー |
ひゅーら
|
| 提出日時 | 2017-06-22 20:43:37 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| コンパイル時間 | 999 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-02 12:20:25 |
| 合計ジャッジ時間 | 986 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 11 |
ソースコード
#include <stdio.h>
#include <string.h>
int main(void){
char s[1030];
scanf("%s", s);
int len = strlen(s);
for(int i = 1; i <= len; i++){
s[i-1] = s[i-1]-i;
if(s[i-1] < 'A'){
s[i-1] += 26;
}
}
printf("%s\n", s);
return 0;
}
ひゅーら