結果
問題 | No.495 (^^*) Easy |
ユーザー |
![]() |
提出日時 | 2018-01-20 16:12:15 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 238 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 03:03:31 |
合計ジャッジ時間 | 652 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <stdio.h> char s[100001]; int countRight,countLeft; int main(void){ scanf("%s",s); int i=0; while(s[i]!='#'){ if(s[i+1]=='*') countRight++; else countLeft++; i+=5; } printf("%d %d\n",countLeft,countRight); return 0; }