結果

問題 No.892 タピオカ
ユーザー 29da16429da164
提出日時 2020-07-24 17:19:23
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 910 ms
コンパイル使用メモリ 66,740 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-07 20:35:18
合計ジャッジ時間 1,776 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>

int main(void){
  int a1,a2,a3,b1,b2,b3;
  long long sum;
  std::cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;;
  sum = std::pow(a1,b1)+std::pow(a2,b2)+std::pow(a3,b3);
  if(sum%2==0) std::cout << ":-)" << std::endl;
  if(sum%2==1) std::cout << ":-(" << std::endl;
}
0