結果
| 問題 | No.256 桁の数字を入れ替え (2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-24 10:14:22 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 312 bytes |
| コンパイル時間 | 1,430 ms |
| コンパイル使用メモリ | 28,288 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 10:14:24 |
| 合計ジャッジ時間 | 1,231 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 RE * 2 |
ソースコード
#include <stdio.h>
#include <string.h>
#define MAX 6
int main(void) {
char n[MAX + 1];
int bit, temp;
scanf("%s", n);
bit = strlen(n);
for (int i = 0; i < bit - 1; i++)
for (int j = i + 1; j < bit; j++)
if (n[i] < n[j])
temp = n[i], n[i] = n[j], n[j] = temp;
printf("%s\n", n);
return 0;
}