結果
問題 |
No.2015 Stair Counter
|
ユーザー |
|
提出日時 | 2024-07-18 19:40:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 170 ms / 2,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 29,412 KB |
最終ジャッジ日時 | 2024-07-18 19:40:19 |
合計ジャッジ時間 | 4,256 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
t = int(input()) for i in range(t): n, m = map(int, input().split()) A = list(map(int, input().split())) flg = True for j in range(n-1): if A[j] + A[j+1] >= m: continue else: flg = False break if flg: print("Yes") else: print("No")