結果
| 問題 | No.544 Delete 7 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-08-18 03:06:25 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 1,000 ms | 
| コード長 | 304 bytes | 
| コンパイル時間 | 2,383 ms | 
| コンパイル使用メモリ | 191,744 KB | 
| 最終ジャッジ日時 | 2025-01-07 13:56:42 | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 48 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    int n;
    cin>>n;
    int a,b;
    a=b=0;
    int mul=1;
    while (n) {
        int c=n%10;
        a+=c/2*mul;
        b+=(c-c/2)*mul;
        mul*=10;
        n/=10;
    }
    cout<<a<<' '<<b<<endl;
    return 0;
}
            
            
            
        