結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2024-04-02 09:12:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 5,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 4,408 ms |
コンパイル使用メモリ | 249,948 KB |
最終ジャッジ日時 | 2025-02-20 19:34:43 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using ll = long long;using ld = long double;int N;int digit[10] = {6, 2, 5, 5, 4, 5, 6, 3, 7, 6};int main() {cin >> N;string ans;while (N > 0) {if (N % 2 == 1) {ans += '7';N -= 3;} else {ans += '1';N -= 2;}}cout << ans << endl;return 0;}