結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
whogoh
|
| 提出日時 | 2017-08-21 20:32:01 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 449 bytes |
| 記録 | |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-15 20:01:57 |
| 合計ジャッジ時間 | 2,409 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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