結果

問題 No.373 かけ算と割った余り
ユーザー mesame3993mesame3993
提出日時 2021-11-18 15:04:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 460 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 71,580 KB
最終ジャッジ日時 2023-08-27 01:00:05
合計ジャッジ時間 1,707 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,368 KB
testcase_01 AC 69 ms
71,580 KB
testcase_02 AC 69 ms
71,232 KB
testcase_03 AC 72 ms
71,444 KB
testcase_04 AC 77 ms
71,440 KB
testcase_05 AC 74 ms
71,348 KB
testcase_06 AC 77 ms
71,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  readline=stdin.readline
  #s = input()
  a, b, c, d = map(int, readline().split())
  #A = list(map(int, readline().split()))
  ans = ((((a % d) * b) % d) * c) % d
  print(ans)
main()
0