結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | NB29979 |
提出日時 | 2015-08-18 23:52:33 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 58,804 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-25 12:56:59 |
合計ジャッジ時間 | 892 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,380 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
ソースコード
#include<iostream> #include<algorithm> using namespace std; int main() { int n,m, tmp = 0; cin >> n; m = n; m *= 10; while (m /= 10) { tmp += m % 10; tmp *= 10; } tmp /= 10; cout << max(n, tmp) << endl; return 0; }