結果
問題 | No.1486 ロボット |
ユーザー | Tomoyarn |
提出日時 | 2021-12-27 16:56:07 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 2,203 ms |
コンパイル使用メモリ | 81,504 KB |
実行使用メモリ | 835,364 KB |
最終ジャッジ日時 | 2023-10-26 02:38:27 |
合計ジャッジ時間 | 6,845 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 34 ms
53,464 KB |
testcase_01 | AC | 33 ms
53,464 KB |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | AC | 44 ms
62,028 KB |
testcase_06 | AC | 34 ms
53,472 KB |
testcase_07 | RE | - |
testcase_08 | AC | 34 ms
53,472 KB |
testcase_09 | RE | - |
testcase_10 | AC | 245 ms
203,864 KB |
testcase_11 | AC | 218 ms
203,844 KB |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | MLE | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
ソースコード
M1, S1, M2, S2, N = map(int, input().split()) dp = [0] * (N + sum([M1, S1, M2, S2])) i = 0 while i <= N: for j in range(M1): dp[i] += 1 i += 1 for j in range(S1): i += 1 i = 0 while i <= N: for j in range(M2): dp[i] += 1 i += 1 for j in range(S2): i += 1 print(dp[:N].count(2))