結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー HaijinnHaijinn
提出日時 2017-03-31 21:00:35
言語 C90
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 437 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 24,952 KB
実行使用メモリ 6,060 KB
最終ジャッジ日時 2023-09-21 10:45:25
合計ジャッジ時間 3,763 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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[100000];
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