結果

問題 No.279 木の数え上げ
ユーザー kotatsugamekotatsugame
提出日時 2016-12-21 19:17:08
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 63,864 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-21 04:06:17
合計ジャッジ時間 1,979 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 44 ms
4,380 KB
testcase_11 AC 11 ms
4,376 KB
testcase_12 AC 31 ms
4,376 KB
testcase_13 AC 7 ms
4,380 KB
testcase_14 AC 47 ms
4,380 KB
testcase_15 AC 39 ms
4,380 KB
testcase_16 AC 36 ms
4,376 KB
testcase_17 AC 44 ms
4,376 KB
testcase_18 AC 22 ms
4,376 KB
testcase_19 AC 43 ms
4,376 KB
testcase_20 AC 46 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:3:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    3 | main(){
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
main(){
	int a[4]={},b=1e7,i=3;
	for(char s;cin>>s;a[s-116?s-114?s-101?3:2:1:0]++);
	for(;i--;)b>a[i]/(i-2?1:2)?b=a[i]/(i-2?1:2):0;
	cout<<b<<endl;
}
0