結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2020-10-09 22:18:49 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 425 bytes |
| コンパイル時間 | 661 ms |
| コンパイル使用メモリ | 113,120 KB |
| 実行使用メモリ | 11,868 KB |
| 最終ジャッジ日時 | 2024-06-22 09:23:14 |
| 合計ジャッジ時間 | 2,204 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 RE * 45 |
ソースコード
import std.stdio;
import std.conv;
import std.string;
import std.math;
import std.random;
import std.range;
import std.algorithm;
import std.functional;
import core.bitop;
import std.bigint;
import std.typecons;
import std.container;
void main() {
auto input = readln.split.to!(ulong[]);
auto N = input[0], H = input[1];
auto A = readln.split.to!(ulong[]);
writeln(A.fold!"a * b" % H == 0 ? "YES" : "NO");
}
nak2yoshi