結果
| 問題 | No.495 (^^*) Easy |
| コンテスト | |
| ユーザー |
ふっぴー
|
| 提出日時 | 2017-03-24 22:32:25 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 313 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 42,304 KB |
| 最終ジャッジ日時 | 2026-02-21 23:33:18 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <stdlib.h>
int main(void){
char s[100001];
scanf("%s",s);
int l=0;
int r=0;
int d=strlen(s)-1;
d=d/5;
int i;
for(i=0;i<d;i++){
if(s[5*i+1]=='*'){
r++;
}
else{
l++;
}
}
printf("%d %d\n",l,r);
return 0;
}
ふっぴー