結果

問題 No.112 ややこしい鶴亀算
ユーザー kohei2019kohei2019
提出日時 2021-06-02 21:35:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 53,492 KB
最終ジャッジ日時 2024-04-27 14:34:57
合計ジャッジ時間 1,899 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,008 KB
testcase_01 AC 34 ms
52,240 KB
testcase_02 AC 35 ms
52,272 KB
testcase_03 AC 33 ms
52,816 KB
testcase_04 AC 33 ms
52,124 KB
testcase_05 AC 34 ms
51,952 KB
testcase_06 AC 32 ms
53,356 KB
testcase_07 AC 33 ms
52,188 KB
testcase_08 AC 37 ms
51,964 KB
testcase_09 AC 35 ms
52,352 KB
testcase_10 AC 35 ms
52,120 KB
testcase_11 AC 35 ms
52,544 KB
testcase_12 AC 34 ms
52,316 KB
testcase_13 AC 35 ms
52,824 KB
testcase_14 AC 34 ms
52,532 KB
testcase_15 AC 37 ms
52,896 KB
testcase_16 AC 32 ms
52,940 KB
testcase_17 AC 32 ms
52,264 KB
testcase_18 AC 32 ms
52,016 KB
testcase_19 AC 34 ms
51,684 KB
testcase_20 AC 33 ms
52,400 KB
testcase_21 AC 33 ms
52,456 KB
testcase_22 AC 33 ms
53,052 KB
testcase_23 AC 34 ms
52,332 KB
testcase_24 AC 34 ms
53,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = sum(list(map(int,input().split())))//(N-1)

# x+y = N
# 2x+4y = S
# 2y = S - 2N
y = (S-2*N)//2
x = N-y
print(x,y)
0