結果
問題 | No.892 タピオカ |
ユーザー |
![]() |
提出日時 | 2019-09-27 22:00:54 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 1,081 bytes |
コンパイル時間 | 2,784 ms |
コンパイル使用メモリ | 207,764 KB |
最終ジャッジ日時 | 2025-01-07 19:24:00 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#pragma GCC optimize ("Ofast")#include<bits/stdc++.h>using namespace std;inline void rd(int &x){int k;int m=0;x=0;for(;;){k = getchar_unlocked();if(k=='-'){m=1;break;}if('0'<=k&&k<='9'){x=k-'0';break;}}for(;;){k = getchar_unlocked();if(k<'0'||k>'9'){break;}x=x*10+k-'0';}if(m){x=-x;}}inline void wt_L(char a){putchar_unlocked(a);}inline void wt_L(const char c[]){int i=0;for(i=0;c[i]!='\0';i++){putchar_unlocked(c[i]);}}int A[3];int B[3];int main(){int i;int res = 0;{int Lj4PdHRW;for(Lj4PdHRW=(0);Lj4PdHRW<(3);Lj4PdHRW++){rd(A[Lj4PdHRW]);rd(B[Lj4PdHRW]);}}for(i=(0);i<(3);i++){res += A[i] % 2;}if(res%2){wt_L(":-(");wt_L('\n');}else{wt_L(":-)");wt_L('\n');}return 0;}// cLay varsion 20190925-1// --- original code ---// int A[3], B[3];// {// int res = 0;// rd((A,B)(3));// rep(i,3) res += A[i] % 2;// wt(if[res%2, ":-(", ":-)"]);// }