結果
問題 | No.892 タピオカ |
ユーザー |
![]() |
提出日時 | 2019-10-19 20:47:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 2,073 ms |
コンパイル使用メモリ | 159,452 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 20:21:20 |
合計ジャッジ時間 | 2,149 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
main.cpp:9:2: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 9 | main() { | ^~~~
ソースコード
#include<bits/stdc++.h> using namespace std; int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; } int lcm(int a, int b) { return a * b / gcd(a, b); } main() { vector<long long > a(6); int che =0; for(int i=0;i<6;i++){ cin >> a.at(i); if(i==0||i==2||i==4){ if(a.at(i)%2==0)che++; } } if(che==1||che==3){ cout <<":-)"<<endl; } else{ cout <<":-("<<endl; } }