結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2017-10-29 03:00:01 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 607 bytes |
コンパイル時間 | 4,008 ms |
コンパイル使用メモリ | 73,148 KB |
実行使用メモリ | 37,160 KB |
最終ジャッジ日時 | 2024-11-22 04:38:42 |
合計ジャッジ時間 | 6,483 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 20 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No203 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String str2 = br.readLine(); int count = 0; count = check(str, count); count = check(str2, count); System.out.println(count); } public static int check(String s, int n){ int ans = n; char[] day = s.toCharArray(); for(int i=0; i < 7; i++){ if(day[i] == 'o') ans++; else ans = 0; } return ans; } }