結果

問題 No.83 最大マッチング
ユーザー jugemjugemjugemjugemjugemjugem
提出日時 2017-12-06 00:21:42
言語 Haskell
(9.8.2)
結果
TLE  
実行時間 -
コード長 236 bytes
コンパイル時間 12,135 ms
コンパイル使用メモリ 165,260 KB
実行使用メモリ 20,872 KB
最終ジャッジ日時 2023-08-19 05:12:37
合計ジャッジ時間 19,448 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,896 KB
testcase_01 AC 2 ms
6,920 KB
testcase_02 AC 2 ms
6,884 KB
testcase_03 AC 2 ms
6,896 KB
testcase_04 AC 2 ms
6,896 KB
testcase_05 AC 2 ms
7,072 KB
testcase_06 AC 2 ms
6,924 KB
testcase_07 AC 2 ms
6,928 KB
testcase_08 AC 2 ms
7,024 KB
testcase_09 AC 243 ms
13,916 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 == 2 = "1"
  | n == 3 = "7"
  | n >= 4 = (solve (n-2)) ++ "1"
  | otherwise = ""
0