結果

問題 No.400 鏡
ユーザー KakisukeKakisuke
提出日時 2019-01-22 19:50:35
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 383 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 22,988 KB
実行使用メモリ 10,420 KB
最終ジャッジ日時 2023-10-14 09:17:35
合計ジャッジ時間 6,572 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include<stdio.h>
#include<string.h>
#define N 21
int main()
{
    char s[N],cps[N];
    int i,num=0;
    scanf("%s",s);
    for(i=0;s[i]!='\0';i++){
        cps[num-i]=s[i];
    }
    cps[num+1]='\0';
    i=0;
    while(1){
        if(cps[i]=='<'){
            cps[i]=='>';
        }else{
            cps[i]=='<';
        }
        i++;
    }
    printf("%s\n",cps);
    return 0;
}
0