結果

問題 No.2960 Judgement
ユーザー Maeda
提出日時 2025-03-17 11:39:19
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 646 ms
コンパイル使用メモリ 25,344 KB
実行使用メモリ 7,328 KB
最終ジャッジ日時 2025-03-17 11:39:21
合計ジャッジ時間 1,399 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |                 scanf("%s",result);
      |                 ^~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>

void main(void){
	char result[100] = "a";
	int count = 0;
	for(int i = 0 ; i < 8 ; i++){
		scanf("%s",result);
		if(strcmp(result,"AC") == 0 || strcmp(result,"NoOut") == 0){
			count++;
		}
	}
	if(count >= 6){
		printf("Yes");
	}else if(count == 5){
		printf("Draw");
	}else{
		printf("Lose");
	}
}
0