結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
hiyokko2
|
| 提出日時 | 2017-07-14 22:36:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 568 bytes |
| コンパイル時間 | 1,529 ms |
| コンパイル使用メモリ | 159,720 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-07 23:14:33 |
| 合計ジャッジ時間 | 5,149 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 2 TLE * 1 -- * 45 |
ソースコード
#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;
string BStr = to_string(B);
if (BStr.find("7") == string::npos) {
cout << A << " " << B << endl;
return 0;
}
}
}
hiyokko2