結果
問題 | No.3064 Speedrun (Easy) |
ユーザー |
|
提出日時 | 2025-03-21 21:21:37 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 495 bytes |
コンパイル時間 | 2,423 ms |
コンパイル使用メモリ | 160,980 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-21 21:21:43 |
合計ジャッジ時間 | 3,075 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
import std; void main () { auto A = readln.split.to!(int[]); auto T = readln.split.to!(int[]); int took = 0; foreach (i; 0 .. A.length) { took += T[i] * A[i]; } if (took <= T[$ - 1]) { writeln("Yes"); } else { writeln("No"); } } void read (T...) (string S, ref T args) { import std.conv : to; import std.array : split; auto buf = S.split; foreach (i, ref arg; args) { arg = buf[i].to!(typeof(arg)); } }