結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-15 16:51:41 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 2,369 ms |
| コンパイル使用メモリ | 189,800 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-14 22:08:32 |
| 合計ジャッジ時間 | 7,217 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 44 WA * 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 < 1e7; 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;
}