結果
問題 |
No.544 Delete 7
|
ユーザー |
|
提出日時 | 2021-11-15 16:51:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 407 bytes |
コンパイル時間 | 2,331 ms |
コンパイル使用メモリ | 188,640 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-14 22:05:46 |
合計ジャッジ時間 | 12,751 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 44 TLE * 4 |
ソースコード
#define _GLIBCXX_DEBUG #define ll long long #include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; int main(){ ll N; cin >> N; ll M = 0; for(int i = 0; i < 1e8; i++){ N++; M--; string n = to_string(N); string m = to_string(M); if(n.find("7") == -1 and m.find("7") == -1){ cout << N << " " << M << endl; return 0; } } cout << -1 << endl; }