結果

問題 No.1040 垂直大学
ユーザー ikd
提出日時 2020-05-01 21:27:41
言語 Nim
(2.2.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 3,806 ms
コンパイル使用メモリ 64,088 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 21:58:49
合計ジャッジ時間 4,940 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils

let read = iterator: string {.closure.} =
  while true:
    for s in stdin.readLine.split:
      yield s

proc main() =
  let n = read().parseInt

  if n mod 360 == 90 or n mod 360 == 270:
    echo "Yes"
  else:
    echo "No"
main()
0