結果
| 問題 | No.112 ややこしい鶴亀算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-25 01:42:26 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-03-05 08:28:45 |
| 合計ジャッジ時間 | 5,455 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 8 WA * 15 |
ソースコード
input()
lis = [int(i) for i in input().split(" ")]
N = len(lis)
lis.sort()
if lis[0] == lis[-1]:
if 2 * N == sum(lis):
print("%d 0"%N)
else:
print("0 %d"%N)
else:
print("%d %d"%(lis.count(lis[0]),lis.count(lis[-1])))