結果
問題 |
No.4 おもりと天秤
|
ユーザー |
![]() |
提出日時 | 2017-12-24 01:54:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 743 bytes |
コンパイル時間 | 502 ms |
コンパイル使用メモリ | 56,084 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-17 17:01:48 |
合計ジャッジ時間 | 1,313 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 13 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main() { cout << "impossible" << endl; return 0; // int N, tmp; // vector<int> x; // // cin >> N; // x.push_back(0); // // for(int i=1; i<=N; ++i){ // cin >> tmp; // x.push_back(x[i-1]+tmp); // } // cout << "sum " << x.back() << " " << x[N] << endl; // // if(x.back()%2 == 1){ // cout << "impossible" << endl; // return 0; // } // for(int i=1; i<N; ++i){ // for(int j=1; j<N-i+1; ++j){ // tmp = x[j+i-1] - x[j-1]; // if(tmp == x.back()/2){ // cout << "possible" << endl; // return 0; // } // } // } // cout << "impossible" << endl; // return 0; }