結果
問題 |
No.1643 Not Substring
|
ユーザー |
![]() |
提出日時 | 2021-08-14 13:32:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 1,329 ms |
コンパイル使用メモリ | 166,528 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-05 06:21:13 |
合計ジャッジ時間 | 2,352 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string s; cin >> s; int n=s.size(); int counter=1; rep(i,n){ if (s[i]=='a') counter++; } cout << counter << endl; }