結果

問題 No.531 エヌスクミ島の平和協定
ユーザー jj
提出日時 2017-06-23 23:51:02
言語 Fortran
(gFortran 14.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 1,674 ms
コンパイル使用メモリ 30,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 16:22:38
合計ジャッジ時間 2,713 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 37
権限があれば一括ダウンロードができます

ソースコード

diff #

program main
  implicit none
  integer::N,M
  read *,N,M
  if (M.ge.N) then
     print '(i0)',1
  else if (2*M.ge.N.and.MOD(N,2).eq.0) then
     print '(i0)',2
  else
     print '(i0)',-1
  end if
end program main
0