結果
問題 | No.544 Delete 7 |
ユーザー |
![]() |
提出日時 | 2017-07-14 22:31:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 1,542 ms |
コンパイル使用メモリ | 168,084 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 16:03:24 |
合計ジャッジ時間 | 3,354 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include <bits/stdc++.h>#define DEBUG(C) cerr << #C << " = " << C << endlusing namespace std;long long N;int main() {cin >> N;string s = to_string(N);string ss = string(s.size(), '0');for (int i = 0; i < s.size(); i++) {if (s[i] == '7') s[i] = '1';}long long n = stoll(s);cout << N - n << " " << n << endl;return 0;}