結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
nninjinn00
|
| 提出日時 | 2016-11-12 21:17:34 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 172 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 05:37:13 |
| 合計ジャッジ時間 | 1,357 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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] == 'm')
m++;
}
printf("%d\n", m);
return 0;
}
nninjinn00