結果

問題 No.3020 サンシャイン◯崎
ユーザー jj1gujjj1guj
提出日時 2020-06-05 17:52:54
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 324 bytes
コンパイル時間 2,268 ms
コンパイル使用メモリ 26,196 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-22 08:59:23
合計ジャッジ時間 4,069 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 3 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 3 ms
4,376 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 3 ms
4,376 KB
testcase_15 AC 3 ms
4,380 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 3 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 3 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

program y3020
    implicit none
    integer(8)::i,y=0,e=0,a=0,h=0,c=0
    character(100000)::S
    read*,S
    do i=1,len_trim(S)
        if(S(i:i)=="Y")y=y+1
        if(S(i:i)=="E")e=e+1
        if(S(i:i)=="A")a=a+1
        if(S(i:i)=="H")h=h+1
        if(S(i:i)=="!")c=c+1
    end do
    print*,y,e,a,h,c
end program y3020
0