結果

問題 No.102 トランプを奪え
ユーザー Lanatus
提出日時 2023-11-12 20:36:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 744 bytes
コンパイル時間 1,722 ms
コンパイル使用メモリ 127,096 KB
最終ジャッジ日時 2025-02-17 21:45:33
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <functional>
#include <iomanip>
#include <ios>
#include <iostream>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;

int main(void) {
  int a, b, c, d;
  cin >> a >> b >> c >> d;

  a %= 4;
  b %= 4;
  c %= 4;
  d %= 4;

  int sum = a ^ b ^ c ^ d;
  if (sum == 0) cout << "Jiro" << endl;
  else cout << "Taro" << endl;
  return 0;
}
0