C++
1#include<bits/stdc++.h> 2 3using namespace std; 4 5int main() 6{ 7 int A, B; 8 string S; 9 10 cin >> A >> B; 11 cin >> S; 12 13 if(S.find('-') == A && count(begin(S), end(S), '-') == 1) { 14 cout << "Yes" << endl; 15 } else { 16 cout << "No" << endl; 17 } 18} 19```###前提 20他の競プロerのコードでbeginとendとcount関数の意味を知りたいです。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。