結果
問題 |
No.418 ミンミンゼミ
|
ユーザー |
![]() |
提出日時 | 2016-11-12 21:11:12 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 02:12:31 |
合計ジャッジ時間 | 905 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 25 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%s", s); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int i, m=0; char s[100]; scanf("%s", s); for(i = 0; i < 100; i++){ if(s[i] == 'n') m++; } printf("%d\n", m); return 0; }