結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-13 21:12:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 1,470 ms |
| コンパイル使用メモリ | 166,728 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-05 16:36:03 |
| 合計ジャッジ時間 | 2,066 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
// 9(6) -> 7(3) ->1(2)
char rom[6][32]={"","","1","7","11","17"};
int main(){
int i, j, k, l;
int n,m;
cin >> n;
k=n/3-1;
for (i=0;i<k;i++) putchar('7');
n-=k*(k>0)*3;
puts(rom[n]);
return 0;
}