結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
whogoh
|
| 提出日時 | 2017-08-21 20:32:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 449 bytes |
| コンパイル時間 | 813 ms |
| コンパイル使用メモリ | 80,580 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 16:28:45 |
| 合計ジャッジ時間 | 2,838 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
ソースコード
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <map>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
static const double pi = 3.14159265358979323846;
long long mod = 1000000007;
int main(){
int N;
cin >> N;
string s = to_string(N);
for(int i=0;i<s.size();i++){
if(s[i]=='7') s[i]='6';
}
int M = stoi(s);
cout << M << " " << N - M << endl;
return 0;
}
whogoh