結果
問題 |
No.373 かけ算と割った余り
|
ユーザー |
![]() |
提出日時 | 2016-07-01 00:50:25 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 3,394 ms |
コンパイル使用メモリ | 74,948 KB |
実行使用メモリ | 54,180 KB |
最終ジャッジ日時 | 2024-10-12 00:00:17 |
合計ジャッジ時間 | 5,109 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 3 WA * 2 |
ソースコード
import java.util.Scanner; public class TGMain { public static void main(String[] args){ long a, b, c, N; long ans = 0; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); N = sc.nextInt(); ans = a*b*c; ans = ans%N; System.out.println(ans); } }