結果

問題 No.400 鏡
ユーザー Prai
提出日時 2018-04-06 08:38:03
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-26 10:44:45
合計ジャッジ時間 798 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void){
  char st[20];
  int i,j;
  scanf("%s",st);
  for(j=0;st[j]!=0;j++){
    if(st[j]=='<'){
      st[j]='>';
    }else{
      st[j]='<';
    }
  }
  
  for(i=j;i>=0;i--){
    printf("%c",st[i]);
  }
  return 0;
}
0