結果
| 問題 | No.1543 [Cherry 2nd Tune A] これがプログラミングなのね |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-27 00:05:46 |
| 言語 | Standard ML (MLton 20210117) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 714 bytes |
| 記録 | |
| コンパイル時間 | 6,767 ms |
| コンパイル使用メモリ | 708,368 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-27 00:05:54 |
| 合計ジャッジ時間 | 5,681 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
fun readStr () =
let
fun scan reader stream = SOME (StringCvt.splitl (not o Char.isSpace) reader (StringCvt.skipWS reader stream))
in
valOf (TextIO.scanStream scan TextIO.stdIn)
end
fun readInt () =
valOf (TextIO.scanStream (Int.scan StringCvt.DEC) TextIO.stdIn)
exception BadInput
fun findAns s t "<" =
if s < t then "YES"
else "NO"
| findAns s t ">" =
if s > t then "YES"
else "NO"
| findAns s t "=" =
if s = t then "YES"
else "NO"
| findAns _ _ _ =
raise BadInput
val () =
let
val s = readInt ()
val t = readInt ()
val c = readStr ()
val ans = findAns s t c
in
print (ans ^ "\n")
end