結果

問題 No.69 文字を自由に並び替え
ユーザー shikatsusanshikatsusan
提出日時 2016-05-12 12:49:40
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 7,878 ms
コンパイル使用メモリ 156,024 KB
実行使用メモリ 10,328 KB
最終ジャッジ日時 2023-09-09 20:58:45
合計ジャッジ時間 3,786 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,532 KB
testcase_01 WA -
testcase_02 AC 3 ms
6,532 KB
testcase_03 AC 2 ms
6,520 KB
testcase_04 WA -
testcase_05 AC 2 ms
6,576 KB
testcase_06 AC 2 ms
6,728 KB
testcase_07 AC 2 ms
6,544 KB
testcase_08 AC 3 ms
6,688 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
6,508 KB
testcase_12 AC 2 ms
6,588 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List
main::IO()
main = do
  xa<-getLine
  xb<-getLine
  let hantei xa xb = (sort xa) `compare` (sort xb)
  putStrLn (if hantei xa xb ==EQ then "YES" else "No") 
0