結果
| 問題 |
No.112 ややこしい鶴亀算
|
| コンテスト | |
| ユーザー |
Twizz
|
| 提出日時 | 2017-02-22 19:34:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 5,000 ms |
| コード長 | 276 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-30 19:11:34 |
| 合計ジャッジ時間 | 1,837 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
n=int(input())
leg=list(map(int,input().split()))
max_leg=max(leg)
t_count=0
if n!=leg.count(max_leg):
for i in leg:
if i==max_leg:
t_count+=1
print(t_count,n-t_count)
else:
if max_leg/(n-1)==4:
print(0,n)
else:
print(n,0)
Twizz