結果
問題 | No.1687 What the Heck? |
ユーザー | momoyuu |
提出日時 | 2022-03-27 16:18:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 100,608 KB |
最終ジャッジ日時 | 2024-04-24 03:16:05 |
合計ジャッジ時間 | 2,384 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 44 ms
51,712 KB |
testcase_01 | WA | - |
testcase_02 | AC | 41 ms
52,224 KB |
testcase_03 | WA | - |
testcase_04 | AC | 41 ms
51,968 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 62 ms
72,576 KB |
testcase_10 | AC | 58 ms
67,712 KB |
testcase_11 | AC | 58 ms
68,352 KB |
testcase_12 | AC | 94 ms
99,968 KB |
testcase_13 | AC | 94 ms
100,224 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
ソースコード
def main(): import sys input = sys.stdin.readline N = int(input()) P = list(map(int,input().split())) count = 0 for i in range(N): if P[i] != N: count += i + 1 else: count -= i + 1 print(count) if __name__ == '__main__': main()