結果
問題 | No.123 カードシャッフル |
ユーザー | Maboy |
提出日時 | 2018-02-23 14:26:08 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 145 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 17,344 KB |
最終ジャッジ日時 | 2024-04-16 21:13:26 |
合計ジャッジ時間 | 2,756 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 27 ms
10,752 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 849 ms
12,604 KB |
testcase_11 | AC | 862 ms
17,344 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
ソースコード
n,m=map(int,input().split()) a=[n-x for x in map(int,input().split())] n=[x+1 for x in range(10)][::-1] while a:n+=[n.pop(a.pop(0))] print(n[-1])