結果

問題 No.544 Delete 7
ユーザー ch1channnch1channn
提出日時 2022-12-16 09:48:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 324 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2024-04-27 12:48:25
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
53,140 KB
testcase_01 AC 42 ms
52,616 KB
testcase_02 AC 40 ms
52,004 KB
testcase_03 AC 41 ms
52,260 KB
testcase_04 AC 40 ms
52,556 KB
testcase_05 AC 40 ms
52,180 KB
testcase_06 AC 40 ms
52,680 KB
testcase_07 AC 40 ms
52,576 KB
testcase_08 AC 39 ms
53,424 KB
testcase_09 AC 40 ms
52,740 KB
testcase_10 AC 40 ms
52,900 KB
testcase_11 AC 40 ms
52,740 KB
testcase_12 AC 39 ms
52,480 KB
testcase_13 AC 39 ms
53,020 KB
testcase_14 AC 38 ms
53,360 KB
testcase_15 AC 39 ms
51,692 KB
testcase_16 AC 39 ms
53,688 KB
testcase_17 AC 38 ms
52,792 KB
testcase_18 AC 39 ms
52,152 KB
testcase_19 AC 39 ms
53,216 KB
testcase_20 AC 39 ms
52,444 KB
testcase_21 AC 39 ms
53,776 KB
testcase_22 AC 42 ms
52,136 KB
testcase_23 AC 39 ms
52,096 KB
testcase_24 AC 38 ms
51,888 KB
testcase_25 AC 39 ms
53,960 KB
testcase_26 AC 39 ms
53,744 KB
testcase_27 AC 39 ms
52,120 KB
testcase_28 AC 39 ms
52,820 KB
testcase_29 AC 39 ms
53,880 KB
testcase_30 AC 38 ms
53,208 KB
testcase_31 AC 39 ms
52,612 KB
testcase_32 AC 38 ms
52,600 KB
testcase_33 AC 39 ms
52,136 KB
testcase_34 AC 40 ms
52,404 KB
testcase_35 AC 39 ms
52,864 KB
testcase_36 AC 39 ms
53,164 KB
testcase_37 AC 40 ms
53,480 KB
testcase_38 AC 40 ms
53,864 KB
testcase_39 AC 39 ms
52,820 KB
testcase_40 AC 39 ms
52,404 KB
testcase_41 AC 38 ms
52,280 KB
testcase_42 AC 39 ms
53,376 KB
testcase_43 AC 39 ms
53,912 KB
testcase_44 AC 39 ms
52,144 KB
testcase_45 AC 39 ms
52,260 KB
testcase_46 AC 39 ms
52,760 KB
testcase_47 AC 38 ms
51,872 KB
testcase_48 AC 39 ms
52,492 KB
testcase_49 AC 39 ms
53,840 KB
testcase_50 AC 39 ms
53,152 KB
testcase_51 AC 40 ms
53,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0