結果
問題 |
No.910 素数部分列
|
ユーザー |
![]() |
提出日時 | 2023-01-27 20:40:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 87,936 KB |
最終ジャッジ日時 | 2024-06-28 05:54:03 |
合計ジャッジ時間 | 5,017 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 WA * 28 |
ソースコード
N = int(input()) S = list(input()) S = list(map(int, S)) ans = S.count(3) + S.count(5) + S.count(7) one = 0 for s in S: if s == 1: one += 1 elif s == 9: if one: ans += 1 one -= 1 print(ans + one//2)