結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2025-03-28 15:11:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 1,693 ms |
コンパイル使用メモリ | 160,168 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-28 15:11:47 |
合計ジャッジ時間 | 3,148 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 WA * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { int x, y, x2, y2; cin >> x >> y >> x2 >> y2; int ans = max(x, y); complex<double> c(x, y), c1(x2, y2); if(arg(c) == arg(c1)) ans += 2; cout << ans << endl; }