結果
| 問題 | No.544 Delete 7 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-11-10 23:07:26 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 431 bytes | 
| コンパイル時間 | 1,538 ms | 
| コンパイル使用メモリ | 165,936 KB | 
| 実行使用メモリ | 13,824 KB | 
| 最終ジャッジ日時 | 2024-07-22 18:11:40 | 
| 合計ジャッジ時間 | 6,442 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | TLE * 1 -- * 3 | 
| other | -- * 48 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 1e9;
bool ok(int n) {
  while (n) {
    if (n % 10 == 7)return false;
    n = n / 10;
  }
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int a, b;
  srand(time(0));
  do {
    int t = rand() % mod;
    a = t;
    b = n - a;
  } while (ok(a) || ok(b) );
  cout << a << " " << b << endl;
}
            
            
            
        