結果
問題 | No.989 N×Mマス計算(K以上) |
ユーザー |
|
提出日時 | 2025-02-02 19:45:19 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 455 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 151,552 KB |
最終ジャッジ日時 | 2025-02-02 19:45:49 |
合計ジャッジ時間 | 28,388 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 TLE * 8 |
ソースコード
n, m, k = map(int, input().split()) row = [] r = list(input().split()) opt = r[0] for i in r[1:]: row.append(int(i)) row.sort() cnt = 0 for i in range(n): c = int(input()) if opt == "+": for j in range(len(row)): t = c + row[j] if t >= k: cnt += 1 else: for j in range(len(row)): t = c * row[j] if t >= k: cnt += 1 print(cnt)