結果
問題 |
No.216 FAC
|
ユーザー |
![]() |
提出日時 | 2022-09-06 21:36:31 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 2,307 ms |
コンパイル使用メモリ | 215,844 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 16:12:38 |
合計ジャッジ時間 | 2,714 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
import std; void main() { int N; readf("%d\n", N); auto a = readln.chomp.split.to!(int[]); auto b = readln.chomp.split.to!(int[]); int L = 102; auto scores = new int[](L); foreach (x, y; zip(a, b)) { scores[y] += x; } writeln(scores.maxIndex == 0 ? "YES" : "NO"); }