結果
問題 |
No.946 箱箱箱
|
ユーザー |
|
提出日時 | 2019-12-01 02:39:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 640 ms |
コンパイル使用メモリ | 78,040 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-21 04:04:36 |
合計ジャッジ時間 | 1,965 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 WA * 22 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main() | ^~~~
ソースコード
#include<iostream> #include<map> using namespace std; int N,c,A,G; map<int,int>M; main() { cin>>N; M[0]=1; for(int i=0;i<N;i++) { cin>>A; c+=M[G^=A]++; } cout<<"Taka"<<(c%2?"h":"n")<<"ashi"<<endl; }