結果
問題 | No.2015 Stair Counter |
ユーザー |
|
提出日時 | 2022-07-22 21:27:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 205 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 103,896 KB |
最終ジャッジ日時 | 2024-07-04 05:23:39 |
合計ジャッジ時間 | 4,462 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
t=int(input()) for _ in range(t): n,m=map(int,input().split()) a=list(map(int,input().split())) for i in range(n):a[i]=m-a[i] for i in range(n-1): if a[i]+a[i+1]>m: print("No") break else:print("Yes")