結果
| 問題 | No.256 桁の数字を入れ替え (2) |
| コンテスト | |
| ユーザー |
FF256grhy
|
| 提出日時 | 2015-07-31 22:31:10 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 39,492 KB |
| 実行使用メモリ | 47,340 KB |
| 最終ジャッジ日時 | 2026-04-01 14:19:31 |
| 合計ジャッジ時間 | 653 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 2 |
ソースコード
#include <stdio.h>
int n, d[10];
int main(void) {
scanf("%d", &n);
while(n) {
d[n % 10]++;
n /= 10;
}
int i, j, c = 0, ans = 0;
for(i = 9; 0 <= i; i--) {
for(j = 0; j < d[i]; j++) {
printf("%d", i);
}
}
printf("\n");
return 0;
}
FF256grhy