結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー esehara
提出日時 2021-06-01 20:18:47
言語 OCaml
(5.2.1)
結果
WA  
実行時間 -
コード長 431 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-09 00:15:31
合計ジャッジ時間 1,012 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

let string_1_list_of_string x =
  String.to_seq x
  |> List.of_seq
  |> List.map (String.make 1);;

let line s =
  if (List.hd s) = "-" then begin print_int 0; print_newline () end
  else if (List.length s) < 3 then begin print_int 0; print_newline () end
  else
    List.rev s |> List.tl |> List.tl |> List.rev |> String.concat "" |>
    print_string; print_newline ();;

let () = read_line () |> string_1_list_of_string |> line;;
0