結果

問題 No.83 最大マッチング
ユーザー jugemjugemjugemjugemjugemjugem
提出日時 2017-12-06 00:20:49
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 10,725 ms
コンパイル使用メモリ 164,880 KB
実行使用メモリ 20,800 KB
最終ジャッジ日時 2023-08-19 05:11:25
合計ジャッジ時間 17,307 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
6,916 KB
testcase_02 WA -
testcase_03 AC 3 ms
6,916 KB
testcase_04 WA -
testcase_05 AC 3 ms
7,008 KB
testcase_06 WA -
testcase_07 AC 2 ms
6,896 KB
testcase_08 WA -
testcase_09 AC 263 ms
14,004 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 Control.Monad
import Control.Applicative
import Data.List

main = do
  t <- readLn

  putStrLn . id $ solve t

solve :: Int -> String
solve n
  | n == 3 = "7"
  | n >= 4 = (solve (n-2)) ++ "1"
  | otherwise = ""
0