提出 #50006398


ソースコード 拡げる

#ARC070_20240204_A
T=int(input())
for _ in range(T):
    N,A,B=map(int,input().split())
    if(A>N):
        print("No")
    else:
        N2=N-A
        if(N2<=A):
            AOK=N2**2
        else:
            AOK=((N+1)//2)*N2
        if(B<=AOK):
            print("Yes")
        else:
            print("No")

提出情報

提出日時
問題 A - No Attacking
ユーザ Konini
言語 Python (PyPy 3.10-v7.3.12)
得点 400
コード長 330 Byte
結果 AC
実行時間 237 ms
メモリ 83704 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 400 / 400
結果
AC × 1
AC × 8
セット名 テストケース
Sample 00_sample_00.txt
All 00_sample_00.txt, 01_small_00.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 03_corner_00.txt, 03_corner_01.txt, 03_corner_02.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 57 ms 76748 KiB
01_small_00.txt AC 233 ms 83620 KiB
02_random_00.txt AC 237 ms 83704 KiB
02_random_01.txt AC 235 ms 83700 KiB
02_random_02.txt AC 236 ms 83660 KiB
03_corner_00.txt AC 233 ms 82944 KiB
03_corner_01.txt AC 234 ms 83688 KiB
03_corner_02.txt AC 234 ms 83400 KiB