結果
| 問題 | No.3705 ビバ子とマカロン (Bibako and Macaron) |
| コンテスト | |
| ユーザー |
昼のご飯
|
| 提出日時 | 2026-09-10 17:53:11 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 574 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 216,636 KB |
| 最終ジャッジ日時 | 2026-09-10 17:53:28 |
| 合計ジャッジ時間 | 15,289 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| 小課題1 | 10 % | RE * 5 |
| 小課題2 | 30 % | RE * 8 |
| 小課題3 | 60 % | RE * 15 |
| 合計 | 0 点 |
ソースコード
from collections import Counter
N = int(input())
A1 = list(map(int, input().split()))
A2 = Counter(A1)
Q = int(input())
W = A1[-1]
flag = [0] * W
for i, j in A2.items():
flag[i - 1] = j
for _ in range(Q):
B = list(map(int, input().split()))
if any(n < 1 or n > W for n in B):
print("No")
continue
for i in range(1, W + 1):
D = 0
if B[0] <= i <= B[1]:
D += 1
if B[2] <= i <= B[3]:
D += 1
if D > flag[i - 1]:
print("No")
break
else:
print("Yes")
昼のご飯