結果

問題 No.112 ややこしい鶴亀算
ユーザー mkawa2
提出日時 2019-12-20 21:08:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-17 21:43:22
合計ジャッジ時間 1,796 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def LI(): return list(map(int, sys.stdin.readline().split()))

def main():
    n=int(input())
    aa=LI()
    s=sum(aa)//(n-1)
    crane=(4*n-s)//2
    turtle=n-crane
    print(crane,turtle)

main()
0