結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2017-07-14 22:29:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 352 bytes |
コンパイル時間 | 1,739 ms |
コンパイル使用メモリ | 170,740 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 16:02:27 |
合計ジャッジ時間 | 3,396 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include<bits/stdc++.h>#define rep(i,n)for(int i=0;i<(n);i++)using namespace std;int main() {string s; cin >> s;string a, b;for (char c : s) {if (c == '7') {a += '3'; b += '4';}else {a += '0'; b += c;}}while (a.front() == '0')a = a.substr(1);while (b.front() == '0')b = b.substr(1);cout << a << ' ' << b << endl;}