結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー esehara
提出日時 2021-06-01 20:15:19
言語 OCaml
(5.2.1)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 19,692 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-09 00:15:30
合計ジャッジ時間 1,117 ms
ジャッジサーバーID
(参考情報)
judge2 / 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 () =
  let raw = read_line () |> string_1_list_of_string in
  if (List.hd raw) = "-" then begin print_int 0; print_newline () end
  else if (List.length raw) < 3 then begin print_int 0; print_newline () end
  else
    List.rev raw |> List.tl |> List.tl |> List.rev |> String.concat "" |>
    print_string; print_newline ();;
0