結果
問題 | No.632 穴埋め門松列 |
ユーザー | kryu_______2740 |
提出日時 | 2018-02-18 00:31:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 132 ms / 1,000 ms |
コード長 | 235 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 10,676 KB |
実行使用メモリ | 29,840 KB |
最終ジャッジ日時 | 2023-09-06 17:59:11 |
合計ジャッジ時間 | 1,436 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 132 ms
29,712 KB |
testcase_01 | AC | 124 ms
29,616 KB |
testcase_02 | AC | 126 ms
29,620 KB |
testcase_03 | AC | 124 ms
29,840 KB |
testcase_04 | AC | 123 ms
29,780 KB |
testcase_05 | AC | 122 ms
29,636 KB |
ソースコード
import numpy as np a = input() a = a.split(" ") a = np.array(a) question = np.where(a=="?")[0] two = np.where(a=="2")[0] three = np.where(a=="3")[0] if(question==1): print(14) if(two==1): print(4) if(three==1): print(1)