結果

問題 No.112 ややこしい鶴亀算
ユーザー yuppe19 😺
提出日時 2015-05-17 09:46:56
言語 Python2
(2.7.18)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-06 04:59:54
合計ジャッジ時間 990 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/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