結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー HaijinnHaijinn
提出日時 2017-03-31 20:58:15
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 434 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 25,140 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-21 10:45:20
合計ジャッジ時間 850 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
int n;
int h;
int m;
int t;
int q;
int z;
int temp;
char s[100];
scanf("%s",s);

for(h=0;h<strlen(s);h++){
	
	for(m=strlen(s)-1;m>h;m--){
		
		if(s[m]<s[m-1]){
			temp=s[m-1];
			s[m-1]=s[m];
			s[m]=temp;
			
			
			
			
			
			
		}
		
		
		
		
		
		
		
	}
	
	
	
	
	
	
	
	
}
for(h=strlen(s)-1;h>=0;h--){
	
	printf("%c",s[h]);
	
	
}
printf("\n");

	return 0;
}
0