結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2017-02-26 09:16:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 681 ms |
コンパイル使用メモリ | 66,312 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 16:29:21 |
合計ジャッジ時間 | 1,351 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream>#include <vector>using namespace std;int main() {int n;cin >> n;string res;while(n >= 2) {if(n % 2 == 1) {res += '7';n -= 3;} else {res += '1';n -= 2;}}cout << res << endl;}