結果
問題 | No.112 ややこしい鶴亀算 |
ユーザー |
![]() |
提出日時 | 2016-03-03 17:56:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 350 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-24 13:48:41 |
合計ジャッジ時間 | 1,774 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#coding: UTF-8 import sys import re import itertools from math import sqrt from collections import deque ### defs ### ### main ### N = int(sys.stdin.readline()) A = list(map(int,sys.stdin.readline().split())) s = sum(A)/(N-1) foot = list(map(lambda x:s-x, A)) print(len(list(filter(lambda x:x==2, foot))), len(list(filter(lambda x:x==4, foot))))