結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-05 16:33:08 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 23 ms / 1,000 ms |
| + 295µs | |
| コード長 | 304 bytes |
| 記録 | |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2026-09-27 15:30:54 |
| 合計ジャッジ時間 | 3,962 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
ソースコード
import random
MAX = int(1e8)
def exists_seven(v):
s = str(v)
for c in s:
if c == '7': return True
return False
N = int(input())
while True:
a = random.randint(0, MAX)
b = N - a
if (exists_seven(a)): continue
if (exists_seven(b)): continue
print(a, b)
break