結果
| 問題 | No.102 トランプを奪え | 
| コンテスト | |
| ユーザー |  hogeover30 | 
| 提出日時 | 2015-03-30 08:43:03 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 337 bytes | 
| コンパイル時間 | 598 ms | 
| コンパイル使用メモリ | 68,656 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-03 22:50:24 | 
| 合計ジャッジ時間 | 1,208 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 WA * 3 | 
ソースコード
#include <iostream>
#include <unordered_set>
using namespace std;
int main()
{
    int g[14]={};
    for(int i=1;i<14;++i) {
        unordered_set<int> s;
        for(int j=1;i-j>=0;++j) s.insert(g[i-j]);
        while (s.count(g[i]++));
    }
    int a, b, c, d;
    while (cin>>a>>b>>c>>d) cout<<((a^b^c^d) ? "Taro" : "Jiro")<<endl;
}
            
            
            
        