結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2016-02-23 23:22:56 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 1,095 ms |
| コンパイル使用メモリ | 131,712 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 03:02:33 |
| 合計ジャッジ時間 | 1,934 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 8 |
ソースコード
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[]);
auto p = zip(a, b).map!(c => c[1]>0?c[0]:0).sum;
(p <= a.sum-p ? "YES" : "NO").writeln;
}
nak2yoshi