結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-30 14:57:25 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 531 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-09 16:14:44 |
| 合計ジャッジ時間 | 2,229 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 29 |
ソースコード
def main():
s = input()
length_minimom = 'cww'
for c in range(len(s)):
if s[c] == 'c':
count_cww = 0
for w in range(c+1, len(s)):
count_cww += 1
if s[w] == 'w':
count_cww == 2
length_minimom = min(range(len(s)))
break
if count_cww == 2:
print(length_minimom)
else:
return -1
if __name__ == '__main__':
main()