結果
問題 | No.892 タピオカ |
ユーザー |
|
提出日時 | 2019-09-29 15:25:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 408 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 30,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 04:28:54 |
合計ジャッジ時間 | 642 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
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){ bool is_Even = true; rep(i,0,3){ ll a,b; if (!scanf("%d %d", &a, &b)) return 0; if (a%2 != 0) is_Even = !is_Even; } if (is_Even){ printf(":-)\n"); } else{ printf(":-(\n"); } return 0; }