結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー eseharaesehara
提出日時 2021-06-01 20:12:03
言語 OCaml
(5.2.1)
結果
WA  
実行時間 -
コード長 935 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 19,564 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-09 00:15:26
合計ジャッジ時間 999 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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