結果

問題 No.791 うし数列
ユーザー むらため
提出日時 2019-03-07 08:35:08
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 2,354 ms
コンパイル使用メモリ 60,700 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-01 19:28:53
合計ジャッジ時間 2,907 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "<stdio.h>" ,discardable.}
if getchar_unlocked() != '1' : quit "-1",0
var ans = 0
while true:
  let k = getchar_unlocked()
  if k < '0' or k > '9': quit $ans, 0
  if k != '3' : quit "-1",0
  ans += 1
0