結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
hiyokko2
|
| 提出日時 | 2017-07-14 22:38:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 611 bytes |
| コンパイル時間 | 1,184 ms |
| コンパイル使用メモリ | 161,928 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-07 23:15:48 |
| 合計ジャッジ時間 | 3,810 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | -- * 48 |
ソースコード
#include <bits/stdc++.h>
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define MOD 1000000007
#define int long long
using namespace std;
typedef long long ll;
const int INF = 1e9;
signed main()
{
int N;
cin >> N;
for (int A=-1e9; A<=1e9; A++) {
string AStr = to_string(A);
if (AStr.find("7") != string::npos) continue;
int B = N - A;
if (B < -1e9 || 1e9 < B) continue;
string BStr = to_string(B);
if (BStr.find("7") == string::npos) {
cout << A << " " << B << endl;
return 0;
}
}
}
hiyokko2