結果
問題 | No.2852 Yakitori Optimization Problem |
ユーザー | E49869826 |
提出日時 | 2024-08-25 13:37:52 |
言語 | Nim (2.0.2) |
結果 |
AC
|
実行時間 | 88 ms / 2,000 ms |
コード長 | 2,592 bytes |
コンパイル時間 | 3,737 ms |
コンパイル使用メモリ | 98,280 KB |
実行使用メモリ | 13,056 KB |
最終ジャッジ日時 | 2024-08-25 13:38:01 |
合計ジャッジ時間 | 6,055 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 20 ms
6,816 KB |
testcase_01 | AC | 61 ms
8,832 KB |
testcase_02 | AC | 51 ms
8,832 KB |
testcase_03 | AC | 84 ms
12,544 KB |
testcase_04 | AC | 68 ms
10,496 KB |
testcase_05 | AC | 25 ms
6,944 KB |
testcase_06 | AC | 8 ms
6,940 KB |
testcase_07 | AC | 68 ms
10,752 KB |
testcase_08 | AC | 7 ms
6,940 KB |
testcase_09 | AC | 86 ms
12,544 KB |
testcase_10 | AC | 88 ms
11,392 KB |
testcase_11 | AC | 86 ms
11,392 KB |
testcase_12 | AC | 88 ms
12,544 KB |
testcase_13 | AC | 86 ms
11,392 KB |
testcase_14 | AC | 87 ms
12,672 KB |
testcase_15 | AC | 88 ms
13,056 KB |
testcase_16 | AC | 87 ms
11,392 KB |
コンパイルメッセージ
check is on optimized for speed
ソースコード
# Please use Nim-ACL import macros; macro ImportExpand(s:untyped):untyped = parseStmt(staticExec("echo " & $s[2] & " | base64 -d | xzcat")) # const OPTIMIZE_SIZE = true ImportExpand "e_lib/templates/prelude.nim" <=== "/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AG2AM1dADuaCNQtYnSg9EGWFdHzgJ4ZEZPA2A4GC71uJBE1Q5DCmJ6ip+BHSeOQAxKLZNxc8uvrgoLZaEvkfszH6ztT7Cqw+jwCLVNdnRZ/o9+gCa9AuZUCsQ4v1tT4NKMRrz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DHERT7lgFpzg3bTioJhH18tIh5/CV3VpNPRDcVgjfh9Yijzdjf3CsAqkkrVaGiHJsISriPCFBuE8JjPg1VqbfAQfu4MmRX5NzJc8bLg2CJNudqvkTzrSQR34GYmGltrwNyIcGSrHBPGJy1B3Yy2NoedVr/s858o8V88fBZooC0RXsmKmr6vQkzXXOY9jLmU3pj9SMQ1Hs0egv8M+CPdgtiuEDVwtZ2vekcUXeAQyUdV+SiH48YR8+rXajEy/rfLdriDfiacCS9Zlry3ImdjOtggQUG4bDgqry+twt7+EiPZlLd3bKMqqk9PU+Df3d5sWNkzVwljUpziUVI3l72/v9zOfj22rAvDaUJgSqDh1RHN8cCXAJwr3/YY4Yx75WsRUkWqygzX4cg+uc86G6PZ0UZaW3oUMhpAJcMHVchreNrI9sE/w979ZRapbIO7liNOGCKGlL1AFgOhgd9Lx/5FbUV/IuDdjMxKD/nvskiXC8cV1Hh7wNdokaGSDNIqKcr4LDNOsqtfMRNzh/PKFZ8jrRO6oyQ8qcGJauGS/S93wuwoFO3GxyI2PeesESKO6PFp0iIb8o8MOGIyPXmeuZ/3W/OpRESdCS0Gcqcao9dLIFGoQCBqMM+iudeS1ZtGdveWfgtHG2fy4ho0IPt9cSwiC2FhwFVqD4rc0mzXCSypw90fONMkXZe/8eUAABFDYk4U9GKwgABgwm4GgAACZAWn7HEZ/sCAAAAAARZWg==" proc solve(N,K:int;A,B,C:seq[int]):void = let te1 = (0..<N).mapIt(C[it]-B[it]).sorted(Descending) echo A.sum + B.sum + te1[0..<N-K].sum return proc main():void = # Failed to predict input format let N, K = nextInt() let A = newSeqWith(N,nextInt()) let B = newSeqWith(N,nextInt()) let C = newSeqWith(N,nextInt()) solve(N,K,A,B,C) return main()