結果

問題 No.729 文字swap
ユーザー 173205080173205080
提出日時 2019-07-12 08:58:49
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 222 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 27,008 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-28 07:57:01
合計ジャッジ時間 2,681 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>
#include<stdlib.h>
#define df 0


int main(){
  int i,j;
  char s[20];
  scanf("%s",s);
  scanf("%d%d",i,j);
  int c=s[i];
  s[i]=s[j];
  s[j]=c;

  printf("%s\n",s);
  return 0;
}


/// confirm df==0 ///
0