結果

問題 No.908 うしたぷにきあくん文字列
ユーザー yosuteconyosutecon
提出日時 2019-11-10 09:18:41
言語 Julia
(1.9.3)
結果
WA  
実行時間 -
コード長 368 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 160,604 KB
最終ジャッジ日時 2023-10-13 07:41:30
合計ジャッジ時間 5,863 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 216 ms
160,044 KB
testcase_02 AC 219 ms
159,900 KB
testcase_03 WA -
testcase_04 AC 217 ms
158,732 KB
testcase_05 AC 215 ms
158,320 KB
testcase_06 AC 218 ms
158,900 KB
testcase_07 AC 217 ms
157,192 KB
testcase_08 AC 214 ms
157,584 KB
testcase_09 AC 214 ms
157,348 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 211 ms
157,444 KB
testcase_13 WA -
testcase_14 AC 216 ms
159,524 KB
testcase_15 WA -
testcase_16 AC 216 ms
158,656 KB
testcase_17 WA -
testcase_18 AC 218 ms
156,976 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

parseInt(x) = parse(Int, x)
parseMap(x::Array{SubString{String},1}) = map(parseInt, x)

function main()
    s = readline() |> chomp
    l = length(s)
    f = 0
    for i in 1:l
        if l%2==1&&(Int(s[i])<97||Int(s[i])>122)
            f = 1
        end
        if l%2==0&&s[i]!=(" ")
            f = 1
        end
    end
    println(f==0 ? "Yes" : "No")
end
main()
0