結果
問題 |
No.910 素数部分列
|
ユーザー |
![]() |
提出日時 | 2019-10-18 21:40:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 1,374 ms |
コンパイル使用メモリ | 159,500 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-25 15:16:48 |
合計ジャッジ時間 | 2,654 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 46 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; const int MOD = 1e9+7; int main() { int N; string S; cin >> N; cin >> S; int ans = 0; ans += count(S.begin(), S.end(), '7'); ans += count(S.begin(), S.end(), '3'); ans += count(S.begin(), S.end(), '5'); ans += count(S.begin(), S.end(), '1') / 2; cout<<ans<<endl; }