結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-17 17:22:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-17 17:23:04 |
| 合計ジャッジ時間 | 3,350 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 2 WA * 1 TLE * 2 -- * 1 |
コンパイルメッセージ
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("%d%d",&A, &B);
| ~~~~~^~~~~~~~~~~~~~~
main.cpp:8:29: warning: ‘ans’ may be used uninitialized [-Wmaybe-uninitialized]
8 | ans *= A;
| ~~~~^~~~
main.cpp:3:19: note: ‘ans’ was declared here
3 | int A, B, ans;
| ^~~
ソースコード
#include <stdio.h>
int main(void){
int A, B, ans;
for(int i = 0;i < 3;i ++){
scanf("%d%d",&A, &B);
for(int j = 0;j < B;j ++){
ans *= A;
}
}
if(ans % 2 == 0){
printf(":-)");
}else{
printf(":-(");
}
}
sasa