結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2016-02-24 00:19:46 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 412 bytes |
| コンパイル時間 | 936 ms |
| コンパイル使用メモリ | 111,232 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 03:02:38 |
| 合計ジャッジ時間 | 1,709 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
import std.stdio,
std.conv,
std.string,
std.range,
std.math,
std.algorithm,
std.bigint;
void main()
{
auto N = readln.strip.to!int;
auto a = readln.split.to!(int[]);
auto b = readln.split.to!(int[]);
int[int] score = [0: 0];
iota(N).array.each!(i => score[b[i]] += a[i]);
(score.values.minPos!"a>b".front <= score[0] ? "YES" : "NO").writeln;
}
nak2yoshi