結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2015-12-28 21:16:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 33,356 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 15:23:19 |
合計ジャッジ時間 | 1,080 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%s",in); | ~~~~~^~~~~~~~~
ソースコード
#include<stdio.h> #include<algorithm> using namespace std; char in[1100000]; int cnt[256]; int main(){ scanf("%s",in); for(int i=0;in[i];i++)cnt[in[i]]++; printf("%d\n",min(cnt['t'],min(cnt['r'],cnt['e']/2))); }