結果

問題 No.112 ややこしい鶴亀算
コンテスト
ユーザー yuppe19 😺
提出日時 2015-05-17 09:46:56
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 157 ms / 5,000 ms
コード長 140 bytes
記録
コンパイル時間 171 ms
コンパイル使用メモリ 77,336 KB
最終ジャッジ日時 2025-12-03 15:09:08
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/python
N = int(raw_input())
n = N - 1
summa = sum(map(int, raw_input().split()))
x = 2*N - summa/n/2
print '{} {}'.format(x, N-x)
0