結果
問題 | No.512 魔法少女の追いかけっこ |
ユーザー | te-sh |
提出日時 | 2017-05-05 22:27:35 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 824 ms |
コンパイル使用メモリ | 112,848 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-12 19:00:29 |
合計ジャッジ時間 | 2,282 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 53 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string; void main() { auto rd = readln.split.to!(int[]), x = rd[0], y = rd[1]; auto n = readln.chomp.to!size_t; auto ai = readln.split.to!(real[]); auto txi = ai.map!(a => a / x).array; auto tyi = ai.map!(a => a / y).array; auto si = tyi[1..$]; si[] -= txi[0..$-1]; writeln(si.all!"a >= 0" ? "YES" : "NO"); }