結果
| 問題 | No.1722 [Cherry 3rd Tune C] In my way |
| コンテスト | |
| ユーザー |
kokatsu
|
| 提出日時 | 2021-10-29 21:31:28 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 678µs | |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 1,096 ms |
| コンパイル使用メモリ | 193,408 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-27 03:25:52 |
| 合計ジャッジ時間 | 2,324 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/core/checkedint.d(814): Warning: cannot inline function `core.checkedint.mulu!().mulu`
ulong mulu()(ulong x, uint y, ref bool overflow)
^
ソースコード
import std;
void main() {
ulong N, M;
readf("%d %d\n", N, M);
auto X = readln.chomp.split.to!(ulong[]);
auto Y = readln.chomp.split.to!(ulong[]);
auto Z = Y.sort;
foreach (x; X) {
auto l = Z.upperBound(x);
if (l.empty) {
writeln("Infinity");
}
else {
writeln(l.front - x);
}
}
}
kokatsu