結果

問題 No.544 Delete 7
ユーザー xuzijian629
提出日時 2018-10-26 11:56:19
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 328 bytes
コンパイル時間 1,362 ms
コンパイル使用メモリ 159,740 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-19 06:02:50
合計ジャッジ時間 3,006 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    string a = "", b = "";
    for (char c: s) {
        if (c == '7') {
            a += '1';
            b += '6';
        } else {
            a += '0';
            b += c;
        }
    }
    cout << stoi(a) << " " << stoi(b) << endl;
}
0