結果
| 問題 |
No.989 N×Mマス計算(K以上)
|
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2020-02-19 18:27:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 22,420 KB |
| 最終ジャッジ日時 | 2024-10-08 10:43:28 |
| 合計ジャッジ時間 | 4,338 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 TLE * 1 -- * 9 |
ソースコード
N,M,K=map(int,input().split())
op,*B=input().split()
pb=[int(s) for s in B]
cn=0
if op=='+':
for _ in range(N):
k=K-int(input())
cn += len(['0' for n in pb if n>=k])
else:
for _ in range(N):
a=int(input())
k=(K+a-1)//a
cn += len(['0' for n in pb if n>=k])
print(cn)
_matumo_