結果
| 問題 | No.2168 双頭ヒドラゲーム |
| コンテスト | |
| ユーザー |
👑 Nachia
|
| 提出日時 | 2022-12-20 00:21:09 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 650 bytes |
| 記録 | |
| コンパイル時間 | 2,477 ms |
| コンパイル使用メモリ | 81,824 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-06-29 01:40:11 |
| 合計ジャッジ時間 | 3,149 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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