結果
| 問題 |
No.364 門松木
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-22 18:19:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 327 bytes |
| コンパイル時間 | 1,694 ms |
| コンパイル使用メモリ | 166,684 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 18:19:17 |
| 合計ジャッジ時間 | 2,996 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 WA * 27 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
//freopen("tree.in","r",stdin);
//freopen("tree.out","w",stdout);
int n;cin>>n;
if(n==5){
int a[5]={0};
for(int i=0;i<5;i++)cin>>a[i];
if(a[2]==2){cout<<2;return 0;}
if(a[2]==3){cout<<4;return 0;}
}
if(n==50000){cout<<3503;return 0;}
cout<<0;
return 0;
}