結果
問題 |
No.791 うし数列
|
ユーザー |
|
提出日時 | 2023-09-10 20:51:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 113 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-06-28 11:57:25 |
合計ジャッジ時間 | 1,741 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 1 |
ソースコード
s = input() if s[0] == '1' and (len(s) == 1 or all(i == '3' for i in s[1:])): print(len(s) - 1) else: print(-1)