結果
問題 |
No.544 Delete 7
|
ユーザー |
![]() |
提出日時 | 2025-04-12 00:03:28 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 519 bytes |
コンパイル時間 | 3,213 ms |
コンパイル使用メモリ | 275,984 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-12 00:03:34 |
合計ジャッジ時間 | 5,363 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); 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) << '\n'; return 0; }