結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2017-03-24 22:32:25 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 1,318 ms |
コンパイル使用メモリ | 30,720 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 03:04:41 |
合計ジャッジ時間 | 600 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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;}