結果

問題 No.369 足し間違い
ユーザー HaarHaar
提出日時 2016-05-28 04:47:43
言語 Haskell
(9.6.2)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 1,196 ms
コンパイル使用メモリ 157,380 KB
実行使用メモリ 14,036 KB
最終ジャッジ日時 2023-07-29 11:39:16
合計ジャッジ時間 2,060 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,080 KB
testcase_01 AC 2 ms
7,144 KB
testcase_02 AC 2 ms
7,112 KB
testcase_03 AC 2 ms
7,384 KB
testcase_04 AC 32 ms
13,324 KB
testcase_05 AC 7 ms
11,312 KB
testcase_06 AC 22 ms
13,124 KB
testcase_07 AC 31 ms
14,036 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )

Main.hs:2:1: warning: [GHC-94817] [-Wtabs]
    Tab character found here, and in three further locations.
    Suggested fix: Please use spaces instead.
  |
2 |         getLine
  | ^^^^^^^^
[2 of 2] Linking a.out

ソースコード

diff #

main = do
	getLine
	n <- return . sum . map read . words =<< getLine
	v <- return . read =<< getLine
	print $ n - v
0