結果
| 問題 | No.791 うし数列 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-03-01 22:14:05 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 144 bytes | 
| コンパイル時間 | 463 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-09-16 19:19:01 | 
| 合計ジャッジ時間 | 1,697 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 WA * 3 | 
ソースコード
N = int(input())
S = list(str(N))
if S[0]=='1':
    if len(set(S)) == 2:
        print(len(S)-1)
    else:
        print(-1)
else:
    print(-1)
            
            
            
        