結果

問題 No.216 FAC
ユーザー jj
提出日時 2016-07-30 15:31:27
言語 Fortran
(gFortran 14.2.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 295 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 31,360 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-06 21:17:36
合計ジャッジ時間 1,159 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

  integer::N,i
  integer::a(100),b(100)
  integer::score(0:100)
  data score/101*0/
  read *, N
  read *, a(1:N), b(1:N)

  do i=1, N
     score(b(i)) = score(b(i)) + a(i)
  end do

  if (MAXVAL(score).eq.score(0)) then
     print '(a)', "YES"
  else
     print '(a)', "NO"
  end if
end program
0