結果
問題 |
No.418 ミンミンゼミ
|
ユーザー |
![]() |
提出日時 | 2016-09-21 20:49:36 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 11,904 KB |
最終ジャッジ日時 | 2024-11-17 10:33:18 |
合計ジャッジ時間 | 55,421 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 |
other | TLE * 25 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%s",s); | ^~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char s[]={"\0"}; scanf("%s",s); int c=strlen(s); int i=0; int t=0; for(i;i<c;i++){ if(s[i]=='m'){ t++; } } printf("%d\n",t); return 0; }