結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2023-09-29 14:07:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 429 bytes |
コンパイル時間 | 620 ms |
コンパイル使用メモリ | 69,504 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 08:20:55 |
合計ジャッジ時間 | 1,311 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 4 WA * 6 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main(void){ //input int match; cin >> match; //calc vector<int> max; if(match % 2 == 0){ for(int i=0;i<match / 2;i++){ max.push_back(1); } }else{ for(int i=0;i<match / 2;i++){ if(i == (match / 2) - 1){ max.push_back(7); }else{ max.push_back(1); } } } //output for(int i=0;i<max.size();i++){ cout << max.at(i); } cout << endl; }