結果
| 問題 | No.256 桁の数字を入れ替え (2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-24 10:19:31 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 13,648 KB |
| 最終ジャッジ日時 | 2024-12-24 10:19:38 |
| 合計ジャッジ時間 | 6,828 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 2 |
ソースコード
#include <stdio.h>
#include <string.h>
#define MAX 1000000
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;
}