結果
問題 | No.586 ダブルブッキング |
ユーザー | Schnee |
提出日時 | 2019-10-22 23:56:00 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 75 ms |
コンパイル使用メモリ | 10,628 KB |
実行使用メモリ | 7,880 KB |
最終ジャッジ日時 | 2023-09-18 12:24:31 |
合計ジャッジ時間 | 788 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,832 KB |
testcase_01 | AC | 17 ms
7,824 KB |
testcase_02 | AC | 16 ms
7,824 KB |
testcase_03 | AC | 16 ms
7,780 KB |
testcase_04 | AC | 15 ms
7,880 KB |
testcase_05 | AC | 15 ms
7,772 KB |
testcase_06 | AC | 14 ms
7,740 KB |
testcase_07 | AC | 14 ms
7,788 KB |
ソースコード
i,ip=int,input son, n, w = i(ip())+i(ip()), i(ip()), 0 book = sorted([ip() for _ in range(n)]) for i in book: a = book.count(i) if a != 1: w += a - 1 for _ in range(a-1):book.remove(i) print(w*son)