結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2017-08-04 22:07:57 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 433 bytes |
| 記録 | |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 39,024 KB |
| 最終ジャッジ日時 | 2026-02-24 00:50:26 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 21 |
ソースコード
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
int main(){
int a=0;
int c=0;
int b=0;
int d=0;
int i;
char s[1000000];
scanf("%s",s);
for(i=0;i<strlen(s);i++){
if(s[i]=='t'){
a++;
}
if(s[i]=='r'){
b++;
}
if(s[i]=='e'){
c++;
}
if(a==1&&b==1&&c==2){
a=0;
b=0;
c=0;
d++;
}
}
printf("%d\n",d);
return 0;
}
Haijinn