結果
問題 | No.1458 Segment Function |
ユーザー |
👑 ![]() |
提出日時 | 2021-03-31 21:49:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 340 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 82,552 KB |
実行使用メモリ | 69,148 KB |
最終ジャッジ日時 | 2024-12-15 17:31:26 |
合計ジャッジ時間 | 3,013 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 RE * 24 WA * 6 |
ソースコード
""""""import sysfrom sys import stdinlis = [6,2,5,5,5,4,5,6,4,7,6]def f(x):ret = 0if x < 0:ret += 1x *= -1while x > 0:ret += lis[x % 10]x //= 10return retP,N = map(int,stdin.readline().split())while not(4 <= P <= 6) and N > 0:P = f(P)N -= 1print (P)