結果

問題 No.313 π
ユーザー ynyn
提出日時 2015-12-14 11:18:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 8,524 KB
最終ジャッジ日時 2023-10-13 16:14:20
合計ジャッジ時間 3,238 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
8,420 KB
testcase_01 RE -
testcase_02 AC 14 ms
8,344 KB
testcase_03 AC 15 ms
8,380 KB
testcase_04 AC 16 ms
8,348 KB
testcase_05 AC 14 ms
8,404 KB
testcase_06 AC 13 ms
8,320 KB
testcase_07 AC 14 ms
8,288 KB
testcase_08 AC 14 ms
8,328 KB
testcase_09 AC 13 ms
8,348 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
権限があれば一括ダウンロードができます

ソースコード

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