結果
| 問題 |
No.3015 右に寄せろ!
|
| コンテスト | |
| ユーザー |
Nichi10p
|
| 提出日時 | 2025-01-25 13:52:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 190 bytes |
| コンパイル時間 | 740 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 14,208 KB |
| 最終ジャッジ日時 | 2025-01-25 23:01:18 |
| 合計ジャッジ時間 | 4,711 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge9 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 29 |
ソースコード
def main():
S = input()
ans = 0
cnt = 0
_s = ''
for s in reversed(S):
if s == '0':
cnt += 1
if (s, _s) == ('1', '1'):
ans += cnt
_s = s
print(ans)
main()
Nichi10p