結果
問題 | No.112 ややこしい鶴亀算 |
ユーザー |
|
提出日時 | 2018-04-13 16:08:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-26 21:41:22 |
合計ジャッジ時間 | 1,604 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
N = int(input())foot_list = list(map(int,input().split()))sum_number_foot = int(sum(foot_list)/ (N-1))#print(sum_number_foot)for i,count_foot in enumerate(foot_list):foot_list[i] = sum_number_foot - count_foot#print(foot_list)turtol = foot_list.count(4)vine = foot_list.count(2)print(vine,turtol)