結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-10 17:53:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 1,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-21 16:32:48 |
| 合計ジャッジ時間 | 3,473 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
ソースコード
n = int(input())
start = ""
for s in str(n):
if s == "7":
start = start + "1"
else:
start = start + "0"
start = int(start)
for i in range(start, n):
a = -start
b = n - a
if "7" not in str(a) and "7" not in str(b):
print(a, b)
break
print(-1)