結果
| 問題 | No.791 うし数列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-07 08:35:08 |
| 言語 | Nim (2.2.6) |
| 結果 |
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 |
ソースコード
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