結果

問題 No.841 8/32
ユーザー iwa_choco_168
提出日時 2019-12-03 12:55:14
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 4,829 ms
コンパイル使用メモリ 76,732 KB
実行使用メモリ 54,292 KB
最終ジャッジ日時 2024-11-27 03:39:35
合計ジャッジ時間 6,890 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int day = 31;
        String str1 = sc.next();
        if(str1.equals("Sat") || str1.equals("Sun")) day++;
        String str2 = sc.next();
        if(str2.equals("Sat") || str2.equals("Sun")) day++;
        System.out.println("8/" + day);
    }
}
0