提出 #45136067


ソースコード 拡げる

n=int(input())
m=[[0]*100 for _ in range(100)]
for _ in range(n):
    a,b,c,d=map(int,input().split())
    for i in range(a, b):
        for j in range(c, d):
            m[i][j]=1
ans=0
for v in m:
    ans+=sum(v)
print(ans)

提出情報

提出日時
問題 B - Overlapping sheets
ユーザ Yuroru
言語 Python (PyPy 3.10-v7.3.12)
得点 200
コード長 235 Byte
結果 AC
実行時間 77 ms
メモリ 81628 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 24
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, hand_10.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 69 ms 80308 KiB
example_01.txt AC 72 ms 80856 KiB
example_02.txt AC 68 ms 80204 KiB
hand_00.txt AC 77 ms 81264 KiB
hand_01.txt AC 76 ms 81568 KiB
hand_02.txt AC 77 ms 81440 KiB
hand_03.txt AC 71 ms 80204 KiB
hand_04.txt AC 71 ms 80524 KiB
hand_05.txt AC 70 ms 80192 KiB
hand_06.txt AC 67 ms 80348 KiB
hand_07.txt AC 70 ms 80020 KiB
hand_08.txt AC 65 ms 81104 KiB
hand_09.txt AC 69 ms 81192 KiB
hand_10.txt AC 66 ms 80052 KiB
random_00.txt AC 66 ms 80316 KiB
random_01.txt AC 67 ms 80748 KiB
random_02.txt AC 67 ms 80992 KiB
random_03.txt AC 67 ms 81628 KiB
random_04.txt AC 66 ms 81308 KiB
random_05.txt AC 67 ms 81460 KiB
random_06.txt AC 67 ms 81480 KiB
random_07.txt AC 68 ms 81472 KiB
random_08.txt AC 69 ms 81304 KiB
random_09.txt AC 70 ms 81624 KiB