結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-29 15:23:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 376 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 30,720 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-03 04:28:52 |
| 合計ジャッジ時間 | 584 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:11:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘ll*’ {aka ‘long long int*’} [-Wformat=]
11 | if (!scanf("%d %d", &a, &b))
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
main.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘ll*’ {aka ‘long long int*’} [-Wformat=]
11 | if (!scanf("%d %d", &a, &b))
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
ソースコード
#include <cstdio>
#include <cmath>
#define rep(i,n,m) for(int i=(n); i < (m); i++)
typedef long long int ll;
int main(void){
ll sum = 0;
rep(i,0,3){
ll a,b;
if (!scanf("%d %d", &a, &b))
return 0;
sum+=std::pow(a,b);
}
if (sum%2 == 0){
printf(":-)\n");
}
else{
printf(":-(\n");
}
return 0;
}