結果
問題 |
No.3015 右に寄せろ!
|
ユーザー |
|
提出日時 | 2025-02-04 10:58:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 111 ms / 2,000 ms |
コード長 | 184 bytes |
コンパイル時間 | 615 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 78,976 KB |
最終ジャッジ日時 | 2025-02-04 10:58:49 |
合計ジャッジ時間 | 4,458 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
s=input() f=0 stc=0 ans=0 for i in s: if i=="1": if f==0: f=1 else: stc+=1 f=0 else: f=0 ans+=stc print(ans)