結果

問題 No.988 N×Mマス計算(総和)
ユーザー pluto77pluto77
提出日時 2020-02-24 09:19:29
言語 PyPy2
(7.3.13)
結果
MLE  
実行時間 -
コード長 270 bytes
コンパイル時間 665 ms
コンパイル使用メモリ 77,612 KB
実行使用メモリ 704,356 KB
最終ジャッジ日時 2023-09-20 12:10:22
合計ジャッジ時間 5,717 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
80,696 KB
testcase_01 AC 72 ms
76,408 KB
testcase_02 AC 80 ms
79,140 KB
testcase_03 AC 79 ms
79,080 KB
testcase_04 AC 73 ms
76,048 KB
testcase_05 AC 80 ms
79,304 KB
testcase_06 AC 79 ms
79,240 KB
testcase_07 AC 78 ms
78,836 KB
testcase_08 AC 79 ms
78,796 KB
testcase_09 AC 73 ms
76,412 KB
testcase_10 MLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki987
n,m,k=map(int,raw_input().split())
op=raw_input().split()
a=[]
for i in range(n):
 a.append(int(raw_input()))
l=[]
for i in range(n):
 for j in range(1,len(op)):
  if op[0]=='+':
   l.append(int(op[j])+a[i])
  else:
   l.append(int(op[j])*a[i])
print(sum(l)%k)
0