提出 #66096362


ソースコード 拡げる

X,Y = list(map(int, input().split()))

def okX(a,b):
    return a + b >= X
def okY(a,b):
    return abs(a - b) >= Y

ans = 0

for i in range(1,7):
    for j in range(1,7):
        if okX(i,j) or okY(i,j):
            ans += 1
            
print(ans / 36) 

提出情報

提出日時
問題 B - P(X or Y)
ユーザ tamagonist
言語 Python (PyPy 3.10-v7.3.12)
得点 250
コード長 269 Byte
結果 AC
実行時間 59 ms
メモリ 76828 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 250 / 250
結果
AC × 3
AC × 17
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 59 ms 76352 KiB
00_sample_01.txt AC 58 ms 76828 KiB
00_sample_02.txt AC 58 ms 76392 KiB
01_random_03.txt AC 58 ms 76380 KiB
01_random_04.txt AC 57 ms 76404 KiB
01_random_05.txt AC 57 ms 76664 KiB
01_random_06.txt AC 58 ms 76712 KiB
01_random_07.txt AC 57 ms 76528 KiB
01_random_08.txt AC 57 ms 76668 KiB
01_random_09.txt AC 59 ms 76504 KiB
01_random_10.txt AC 57 ms 76388 KiB
01_random_11.txt AC 58 ms 76488 KiB
01_random_12.txt AC 59 ms 76476 KiB
01_random_13.txt AC 58 ms 76372 KiB
01_random_14.txt AC 57 ms 76612 KiB
01_random_15.txt AC 57 ms 76372 KiB
01_random_16.txt AC 57 ms 76360 KiB