結果

問題 No.18 うーさー暗号
ユーザー ayato2001ayato2001
提出日時 2021-02-17 09:01:23
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 28,436 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-11 20:41:01
合計ジャッジ時間 2,001 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 WA -
testcase_11 WA -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main(void) {
  char name[256];
  int len,i,r;

  printf("なんか代入してみて:");
  scanf("%s",name);

  len=strlen(name);

  for(i=0;i<len;i++){
    r=(int)name[i]+i+1;
    if(r>90) r-=26;
    name[i]=r;
  }
  printf("%s",name);
  
  return 0;
}
0