結果
問題 |
No.946 箱箱箱
|
ユーザー |
![]() |
提出日時 | 2019-12-09 03:01:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 753 ms |
コンパイル使用メモリ | 59,792 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-03 10:19:20 |
合計ジャッジ時間 | 2,572 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 WA * 5 |
ソースコード
#include<iostream> using namespace std; int main(){ int n; cin >> n; int s = 0; bool flag = 0; for(int i=0;i<n;i++){ int a; cin >> a; s ^=a; if(s==0)flag = true; } if(flag)cout << "Takahashi" << endl; else cout << "Takanashi" << endl; return 0; }