結果
問題 |
No.279 木の数え上げ
|
ユーザー |
![]() |
提出日時 | 2015-11-03 23:26:30 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 588 bytes |
コンパイル時間 | 1,034 ms |
コンパイル使用メモリ | 103,936 KB |
実行使用メモリ | 21,376 KB |
最終ジャッジ日時 | 2024-10-14 15:19:04 |
合計ジャッジ時間 | 2,540 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Yuki { class Program { static void Main(string[] args) { string S = Console.ReadLine(); int[] a = { 0, 0, 0 }; for (int i = 0; i < S.Length; i++) { if (S[i].Equals('t')) a[0]++; if (S[i].Equals('r')) a[1]++; if (S[i].Equals('e')) a[2]++; } a[2] = a[2] / 2; Console.WriteLine(a.Min()); } } }