結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-21 19:17:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 189 bytes |
| コンパイル時間 | 545 ms |
| コンパイル使用メモリ | 64,248 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 12:32:12 |
| 合計ジャッジ時間 | 1,913 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
ソースコード
#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;
}