結果
問題 |
No.892 タピオカ
|
ユーザー |
![]() |
提出日時 | 2020-04-22 23:01:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 1,465 ms |
コンパイル使用メモリ | 165,764 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-12 08:08:23 |
合計ジャッジ時間 | 4,050 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 TLE * 1 -- * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int sum = 0; for (int i = 0; i < 3; i++) { int a, b; cin >> a >> b; int n = 1; for (int j = 0; j < b; j++) { n *= a; } sum += n; } if (!(sum % 2)) { cout << ":-)" << endl; } else { cout << ":-(" << endl; } }