結果
問題 |
No.418 ミンミンゼミ
|
ユーザー |
![]() |
提出日時 | 2019-10-24 20:54:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 189 bytes |
コンパイル時間 | 526 ms |
コンパイル使用メモリ | 65,928 KB |
最終ジャッジ日時 | 2025-01-08 00:54:01 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
ソースコード
#include <iostream> #include <string> using namespace std; string s; int ans; int main(){ cin>>s; for(int i=0;i<s.size();i++)if(s[i]=='n')ans++; cout<<ans<<endl; return 0; }