結果
問題 | No.418 ミンミンゼミ |
ユーザー |
|
提出日時 | 2023-08-13 11:08:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 1,441 ms |
コンパイル使用メモリ | 169,908 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-21 05:31:59 |
合計ジャッジ時間 | 2,437 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using llu = long long unsigned; vector<ll> dx = { 0, 0, -1, 1}; vector<ll> dy = {-1, 1, 0, 0}; #define MOD 1000000007 int main() { string S; cin >> S; int result = 0; for (auto c : S) { if (c == 'n') { result++; } } cout << result << endl; return 0; }