結果

問題 No.729 文字swap
ユーザー tktk
提出日時 2018-09-08 18:39:17
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 1,275 ms
コンパイル使用メモリ 26,240 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-17 16:14:31
合計ジャッジ時間 801 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void){
 char s[10],t;
 int i,j;
 
 scanf("%s",s);
 scanf("%d%d",&i,&j);
 t = s[i];
 s[i] = s[j];
 s[j] = t;
 
 printf("%s\n",s);
}
0