結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-10 23:07:26 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 906 ms |
| コンパイル使用メモリ | 179,184 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-23 11:26:30 |
| 合計ジャッジ時間 | 6,094 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}