結果

問題 No.1893 Cycle
ユーザー VvyLw
提出日時 2025-04-04 15:15:05
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 3,780 ms
コンパイル使用メモリ 194,052 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-04-04 15:15:10
合計ジャッジ時間 3,513 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;
import core.bitop;
import core.checkedint;
import core.time;

const dx = [-1, 1, 0, 0];
const dy = [0, 0, -1, 1];

void main() {
	int x, y;
	readf("%d %d\n", x, y);
	assert(abs(x - y) == 4);
	writeln((max(x, y) + 4) % 12);
}

pragma(inline)
string yes(const bool b) pure @nogc nothrow @safe {
	return b ? "Yes" : "No";
}

pragma(inline)
bool range(const int a, const int x, const int b) pure @nogc nothrow @safe {
	return a <= x && x < b;
}
0