結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
asdfghjkl;
|
| 提出日時 | 2020-03-18 01:52:53 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| 記録 | |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 30,592 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-30 23:39:43 |
| 合計ジャッジ時間 | 1,346 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 5 |
ソースコード
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include <math.h>
int main(void){
char s[10],ss[10];
int max=0;
int now=0;
scanf("%s",s);
scanf("%s",ss);
for(int i=0;i<14;i++){
if(i<7){
if(s[i]=='o'){now++;}
else {
if(max<=now){max=now;}
now=0;
}
}
else{
if(ss[i-7]=='o'){now++;}
else {
if(max<=now){max=now;}
now=0;
}
}
}
printf("%d\n",max);
}
asdfghjkl;