結果
| 問題 |
No.791 うし数列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-07 08:36:03 |
| 言語 | Nim (2.2.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 302 bytes |
| コンパイル時間 | 2,095 ms |
| コンパイル使用メモリ | 60,760 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-01 19:30:48 |
| 合計ジャッジ時間 | 2,763 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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':
if ans == 0 : quit "-1", 0
quit $ans, 0
if k != '3' : quit "-1",0
ans += 1