結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2021-11-15 16:53:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 2,085 ms |
コンパイル使用メモリ | 190,328 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 22:14:09 |
合計ジャッジ時間 | 4,100 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#define _GLIBCXX_DEBUG #define ll long long #include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; int main(){ string S; cin >> S; string A = "", B = ""; for(int i = 0; i < (int)S.size(); i++){ if(S[i] == '7'){ A += "1"; B += "6"; }else{ A += S[i]; B += "0"; } } int ans1 = stoi(A), ans2 = stoi(B); cout << ans1 << " " << ans2 << endl; }