結果

問題 No.146 試験監督(1)
ユーザー aimyaimy
提出日時 2017-04-17 11:47:43
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 158,164 KB
実行使用メモリ 11,900 KB
最終ジャッジ日時 2023-09-26 10:33:46
合計ジャッジ時間 4,143 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

main = getContents >>= print . proctor . map (map read . words) . tail . init . lines

proctor = flip mod m . sum . map (\[c,d] -> div ((mod c m) + 1) 2 * (mod d m))
 where m = 1000000007
0