結果

問題 No.2922 Rose Garden
ユーザー solo
提出日時 2025-01-25 11:36:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 379 bytes
コンパイル時間 1,537 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 43,324 KB
最終ジャッジ日時 2025-01-25 11:39:14
合計ジャッジ時間 138,188 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 14 TLE * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
	arrival_judgment()

def arrival_judgment():
	G, H = [input() for _ in range(2)]
	H = H.split()
	G = G.split()
	N, S, B = (int(i) for i in G)
	highly = int(H[0])
	for x in range(1, N):
		for y in range(S):
			highly += B
			if highly >= int(H[x]):
				highly = int(H[x])
	if highly == int(H[-1]):
		print('Yes')
	else:
		print('No')
if __name__ == '__main__':
	main()
0