結果
| 問題 | No.2168 双頭ヒドラゲーム |
| コンテスト | |
| ユーザー |
Nachia
|
| 提出日時 | 2022-12-20 00:21:09 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 650 bytes |
| 記録 | |
| コンパイル時間 | 2,126 ms |
| コンパイル使用メモリ | 115,908 KB |
| 最終ジャッジ日時 | 2025-02-09 17:15:06 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 9 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <array>
#include <atcoder/modint>
using namespace std;
using i32 = int32_t;
using u32 = uint32_t;
using i64 = int64_t;
using u64 = uint64_t;
#define rep(i,n) for(int i=0; i<(int)(n); i++)
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;
int main(){
string chars = ")|(";
string T0, T1; cin >> T0 >> T1;
vector<int> t0, t1;
for(char c : T0) t0.push_back(chars.find(c));
for(char c : T1) t1.push_back(chars.find(c));
if(t0 < t1) cout << "1\n"; else cout << "0\n";
return 0;
}
Nachia