結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー zazaboonzazaboon
提出日時 2015-08-09 00:53:17
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 430 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 24,876 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-25 07:24:13
合計ジャッジ時間 996 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<stdio.h>
#include<stdlib.h>
#include <string.h> 
int sort(const void*a,const void*b) 
{
	return *(int *)b - *(int *)a;
}
int main (void)
{
	int i,ketasuu=0,keta_int[10001];
	char	keta[10001];
	scanf("%s",keta);
	ketasuu = strlen(keta);
	for(i=0;i<ketasuu;i++)
	{
		keta_int[i]=keta[i];
	}
	qsort((void *)keta_int,ketasuu,sizeof(keta_int[0]),sort);
	for(i=0;i<ketasuu;i++)
	{
		printf("%d",keta_int[i]-48);
	}
	return 0;
}
0