結果

問題 No.313 π
ユーザー yn
提出日時 2015-12-14 11:18:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-09-15 12:14:02
合計ジャッジ時間 4,196 ms
ジャッジサーバーID
(参考情報)
judge2 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 RE * 1
other AC * 8 RE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
a = [20104, 20063, 19892, 20010, 19874, 20199, 19898, 20163, 19956, 19841]
count = [0] * 10

if int(s[0]) == 3:
	a[2] -= 1
else:
	print(s[0],3)
	exit()

for S in s[2:]:
	a[int(S)-1] -= 1
	
for i in range(10):
	if a[i] == -1:
		ans1 = i+1
	if a[i] == 1:
		ans2 = i+1

print(ans1,ans2)
0