結果
問題 |
No.946 箱箱箱
|
ユーザー |
![]() |
提出日時 | 2019-12-09 00:08:30 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 554 bytes |
コンパイル時間 | 1,674 ms |
コンパイル使用メモリ | 162,152 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-02 21:05:36 |
合計ジャッジ時間 | 2,860 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(x) (x).begin(),(x).end() const int mod=998244353,MAX=200005; const ll INF=1LL<<60; int main(){ std::ifstream in("text.txt"); std::cin.rdbuf(in.rdbuf()); cin.tie(0); ios::sync_with_stdio(false); int N;cin>>N; vector<ll> A(N); ll sum=0; bool ok=false; for(int i=0;i<N;i++){ cin>>A[i]; sum^=A[i]; if(sum==0) ok=true; } if(ok) cout<<"Takahashi"<<endl; else cout<<"Takanashi"<<endl; }