結果
| 問題 | No.841 8/32 | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-11 18:00:31 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 451 bytes | 
| コンパイル時間 | 236 ms | 
| コンパイル使用メモリ | 24,832 KB | 
| 実行使用メモリ | 7,324 KB | 
| 最終ジャッジ日時 | 2025-03-11 18:00:33 | 
| 合計ジャッジ時間 | 1,471 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%s",first);
      |     ^~~~~~~~~~~~~~~~~
main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%s",second);
      |     ^~~~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h> 
#include <string.h>
int main() {
    char first[10] = "a";
    scanf("%s",first);
    char second[10] = "a";
    scanf("%s",second);
    if((strcmp(first,"Sat") == 0 || strcmp(first,"Sun") == 0) && (strcmp(second,"Sat") == 0 || strcmp(second,"Sun") == 0)){
        printf("8/33");
    }else if(strcmp(first,"Sat") == 0 || strcmp(first,"Sun") == 0){
        printf("8/32");
    }else{
        printf("8/31");
    }
    return 0;
}
            
            
            
        