結果
問題 | No.1687 What the Heck? |
ユーザー | siman |
提出日時 | 2021-09-26 03:24:48 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 119 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 11,280 KB |
実行使用メモリ | 27,880 KB |
最終ジャッジ日時 | 2023-09-19 02:48:30 |
合計ジャッジ時間 | 3,625 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 86 ms
15,332 KB |
testcase_01 | AC | 83 ms
15,188 KB |
testcase_02 | AC | 83 ms
15,092 KB |
testcase_03 | WA | - |
testcase_04 | AC | 83 ms
15,132 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 109 ms
19,524 KB |
testcase_10 | AC | 100 ms
17,968 KB |
testcase_11 | AC | 104 ms
18,208 KB |
testcase_12 | AC | 162 ms
27,796 KB |
testcase_13 | AC | 159 ms
27,880 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i P = gets.split.map(&:to_i) idx = P.index(N) + 1 if N == 1 puts 0 else puts (1..N).sum - 2 * idx end