結果

問題 No.908 うしたぷにきあくん文字列
ユーザー yosuteconyosutecon
提出日時 2019-11-10 09:24:27
言語 Julia
(1.10.2)
結果
AC  
実行時間 255 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 7,068 KB
実行使用メモリ 243,876 KB
最終ジャッジ日時 2024-04-09 14:16:16
合計ジャッジ時間 6,172 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 255 ms
243,116 KB
testcase_01 AC 248 ms
243,480 KB
testcase_02 AC 249 ms
238,972 KB
testcase_03 AC 244 ms
239,504 KB
testcase_04 AC 247 ms
243,876 KB
testcase_05 AC 247 ms
239,688 KB
testcase_06 AC 248 ms
239,812 KB
testcase_07 AC 249 ms
239,464 KB
testcase_08 AC 247 ms
239,332 KB
testcase_09 AC 247 ms
239,328 KB
testcase_10 AC 247 ms
239,076 KB
testcase_11 AC 247 ms
239,752 KB
testcase_12 AC 248 ms
239,416 KB
testcase_13 AC 248 ms
243,436 KB
testcase_14 AC 250 ms
243,348 KB
testcase_15 AC 250 ms
239,524 KB
testcase_16 AC 250 ms
238,936 KB
testcase_17 AC 251 ms
239,904 KB
testcase_18 AC 249 ms
240,140 KB
testcase_19 AC 245 ms
239,380 KB
権限があれば一括ダウンロードができます

ソースコード

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 i%2==1&&(Int(s[i])<97||Int(s[i])>122)
            f = 1
        end
        if i%2==0&&s[i]!=' '
            f = 1
        end
    end
    println(f==0 ? "Yes" : "No")
end
main()
0