結果
問題 |
No.892 タピオカ
|
ユーザー |
![]() |
提出日時 | 2025-04-01 14:59:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 455 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 9,252 KB |
最終ジャッジ日時 | 2025-04-01 14:59:50 |
合計ジャッジ時間 | 3,229 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 TLE * 1 -- * 3 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%lld%lld",&val,&ride); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ long long val, ride; long long tapioka = 1; for(int i = 0;i < 3;i ++){ scanf("%lld%lld",&val,&ride); for(int j = 0;j < ride;j ++){ tapioka *= val; } } if(tapioka % 2 == 0){ printf(":-)"); }else{ printf(":-("); } }