結果
問題 |
No.112 ややこしい鶴亀算
|
ユーザー |
![]() |
提出日時 | 2017-02-22 19:25:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-30 19:11:21 |
合計ジャッジ時間 | 1,957 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 22 WA * 1 |
ソースコード
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%4==0: print(0,n) else: print(n,0)