結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-08-18 11:30:35 |
| 言語 | Haskell (9.14.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| + 555µs | |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 9,299 ms |
| コンパイル使用メモリ | 193,408 KB |
| 実行使用メモリ | 9,388 KB |
| 最終ジャッジ日時 | 2026-08-18 11:30:46 |
| 合計ジャッジ時間 | 2,560 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
-- 1. Define the pure logic as a polymorphic, standalone function triangular :: Integral a => a -> a triangular n = n * (n + 1) `div` 2 -- 2. Keep the IO pipeline trivially simple main :: IO () main = interact $ (++ "\n") . show . triangular . read
vjudge1