結果
問題 | No.544 Delete 7 |
ユーザー |
![]() |
提出日時 | 2017-08-17 20:44:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 1,546 ms |
コンパイル使用メモリ | 168,740 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 16:26:59 |
合計ジャッジ時間 | 3,416 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include <bits/stdc++.h>using namespace std;int n, x;int main() {cin >> n;string s = to_string(n);for(int i = 0; i < s.size(); i++) {if(s[i] == '7') x = x * 10 + 1;else x *= 10;}cout << x << ' ' << n - x << endl;return 0;}