結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
lll
|
| 提出日時 | 2017-07-14 22:37:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 471 bytes |
| 記録 | |
| コンパイル時間 | 1,578 ms |
| コンパイル使用メモリ | 167,160 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 16:06:31 |
| 合計ジャッジ時間 | 3,368 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N;
cin >> N;
int n = N;
int i = 0;
int A = 0;
while (n > 0) {
int r = n % 10;
if (r == 7) {
A += 1 * pow(10, i);
} else {
A += r * pow(10, i);
}
n /= 10;
i++;
}
int B = N - A;
cout << A << " " << B << endl;
return 0;
}
lll