結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-03-27 13:25:00 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 396 bytes |
| 記録 | |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 39,864 KB |
| 実行使用メモリ | 9,280 KB |
| 最終ジャッジ日時 | 2026-07-07 23:43:34 |
| 合計ジャッジ時間 | 1,754 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 27 |
ソースコード
#include <stdio.h>
int main(){
// 連休のカウント
int count = 0;
// 最大の連休を保存
int ans = 0;
// 1週間のスケジュール
char str[7];
// 2週間分ループ
for(int i = 0;i < 2;i ++){
scanf("%s",str);
// 1日ずつ判別
for(int i = 0;i < 7;i ++){
if(str[i] == 'o'){
count++;
}
if(count > ans){
ans = count;
}
}
}
printf("%d",ans);
}
toto