結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
tsukacchan
|
| 提出日時 | 2016-03-28 13:55:15 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 28,740 KB |
| 最終ジャッジ日時 | 2026-02-23 21:00:58 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
#include<stdio.h>
int main(void){
int c;
int min=0;
int t_counter=0,r_counter=0,e_counter=0;
while( (c=getchar())!='\n' ){
if(c=='t') t_counter++;
if(c=='r') r_counter++;
if(c=='e') e_counter++;
}
min=t_counter;
if(min>r_counter) min=r_counter;
if(min>(e_counter/2)) min=e_counter/2;
printf("%d",min);
return 0;
}
tsukacchan