結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2016-02-25 02:00:42 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 399 ms |
コンパイル使用メモリ | 54,924 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 13:38:28 |
合計ジャッジ時間 | 938 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream> using namespace std; int main(){ int a = 0; int b = a; cin >> a; if (a >= 2) { if (a % 2 == 1) { cout << 7; a -= 3; } if (a % 2 == 0 && a > 0) { for (int i = 0; i < a / 2; i++) { cout << 1; } } } cout << endl; return 0; }