結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-17 17:25:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 262 bytes |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 27,520 KB |
| 実行使用メモリ | 14,772 KB |
| 最終ジャッジ日時 | 2025-03-17 17:25:47 |
| 合計ジャッジ時間 | 3,131 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 TLE * 1 -- * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lld%lld",&A, &B);
| ~~~~~^~~~~~~~~~~~~~~~~~~
main.cpp:10:21: warning: ‘ans’ is used uninitialized [-Wuninitialized]
10 | ans += tmp;
| ~~~~^~~~~~
main.cpp:3:25: note: ‘ans’ was declared here
3 | long long A, B, ans;
| ^~~
ソースコード
#include <stdio.h>
int main(void){
long long A, B, ans;
for(int i = 0;i < 3;i ++){
scanf("%lld%lld",&A, &B);
long long tmp = 1;
for(int j = 0;j < B;j ++){
tmp *= A;
}
ans += tmp;
}
if(ans % 2 == 0){
printf(":-)");
}else{
printf(":-(");
}
}
sasa