結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
![]() |
提出日時 | 2015-09-28 21:57:43 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 76 bytes |
コンパイル時間 | 1,384 ms |
コンパイル使用メモリ | 178,816 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 11:24:40 |
合計ジャッジ時間 | 1,860 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main = (readLn :: IO Int) >>= (\n -> print $ if odd n then n else n `div` 2)