結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
nak2yoshi
|
| 提出日時 | 2020-10-10 00:00:36 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 1,777 ms |
| コンパイル使用メモリ | 184,424 KB |
| 実行使用メモリ | 8,536 KB |
| 最終ジャッジ日時 | 2024-06-22 09:26:15 |
| 合計ジャッジ時間 | 3,006 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 2 |
| other | AC * 1 RE * 48 |
ソースコード
import std;
void main() {
auto input = readln.split.to!(long[]);
auto N = input[0], H = input[1];
long P = 1;
foreach (e; stdin.byLineCopy) {
P = P * e.to!long % H;
}
writeln(P == 0 ? "YES" : "NO");
}
nak2yoshi