結果

問題 No.841 8/32
ユーザー iwa_choco_168
提出日時 2019-12-03 12:56:11
言語 Java
(openjdk 23)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 3,575 ms
コンパイル使用メモリ 80,896 KB
実行使用メモリ 41,676 KB
最終ジャッジ日時 2024-11-27 03:41:41
合計ジャッジ時間 7,346 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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 == 32) day++;
        System.out.println("8/" + day);
    }
}
0