結果

問題 No.112 ややこしい鶴亀算
ユーザー mokraimokrai
提出日時 2017-11-17 11:42:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-08-16 19:06:03
合計ジャッジ時間 1,998 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,940 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 14 ms
7,876 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 13 ms
7,780 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 13 ms
7,820 KB
testcase_12 WA -
testcase_13 AC 12 ms
7,756 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 14 ms
7,824 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 14 ms
7,932 KB
testcase_23 WA -
testcase_24 AC 13 ms
7,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    A = map(int, input().split())
    list_A = list(A)
    max_legs = max(list_A)
    kame = 0
    tsuru = 0
    for leg in list_A:
        if leg == max_legs:
            tsuru += 1
        else:
            kame += 1
    print(kame, tsuru)

if __name__ == '__main__':
    main()
0