結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2022-12-16 09:48:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 1,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 53,952 KB |
最終ジャッジ日時 | 2024-11-15 14:52:59 |
合計ジャッジ時間 | 3,701 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
import sys if sys.platform =='ios': import clipboard a=clipboard.get() a = a.split('\n') text = '\n'.join(a) with open('input_file.txt','w') as f: f.write(text) sys.stdin = open('input_file.txt') n = int(input()) a = 0 tmp = n t = 1 for i in range(10): if n % 10 == 7: a += t t *= 10 n //= 10 print(a,tmp-a)