結果
問題 | No.208 王将 |
ユーザー |
![]() |
提出日時 | 2016-11-08 17:22:14 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 497 bytes |
コンパイル時間 | 1,276 ms |
コンパイル使用メモリ | 142,680 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 04:58:18 |
合計ジャッジ時間 | 2,224 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
import std.algorithm; import std.array; import std.ascii; import std.container; import std.conv; import std.math; import std.numeric; import std.range; import std.stdio; import std.string; import std.typecons; void log(A...)(A arg) { stderr.writeln(arg); } int size(T)(in T s) { return cast(int)s.length; } void main() { int x, y; readf("%d %d\n", &x, &y); int X, Y; readf("%d %d\n", &X, &Y); int f = (x == y && X == Y && X < x); int z = max(x, y); writeln(z + f); }