結果
問題 |
No.791 うし数列
|
ユーザー |
![]() |
提出日時 | 2023-08-07 17:15:20 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 3,953 ms |
コンパイル使用メモリ | 64,896 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 21:34:46 |
合計ジャッジ時間 | 3,992 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 1 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'strutils' [UnusedImport]
ソースコード
import sequtils, strutils var n = readLine stdin ans = 0 if n[0] != '1': ans = -1 else: for v in n[1 .. ^1]: if v == '3': inc ans else: ans = -1 break echo ans