結果

問題 No.2960 Judgement
ユーザー 三浦蓮翔
提出日時 2024-11-26 12:14:18
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 777 ms
コード長 455 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 28,800 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-26 12:14:19
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>
int main() {
    int i,j;
    int count = 0;
    char S[10][10];
    for(i = 0; i < 8; i++) {
        scanf("%s", S[i]);
        
        if(strcmp(S[i], "AC") == 0 || strcmp(S[i], "NoOut") == 0) {
            count++;
        }
        
    }
    if(count >= 6) {
        printf("Win\n");
    }else if(count == 5) {
        printf("Draw\n");
    }else if(count <= 4){
        printf("Lose\n");
    }
    return 0;
}
0