結果
問題 | No.3015 右に寄せろ! |
ユーザー |
![]() |
提出日時 | 2025-01-07 21:47:38 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 122 bytes |
コンパイル時間 | 271 ms |
コンパイル使用メモリ | 82,248 KB |
実行使用メモリ | 78,592 KB |
最終ジャッジ日時 | 2025-01-25 22:13:47 |
合計ジャッジ時間 | 3,152 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S=input() left=0 c=0 for i in S: if i=='1': left+=1 else: c+=left//2 left-=left%2 print(c)