結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2018-09-16 02:49:03 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 07:19:01 |
合計ジャッジ時間 | 584 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <stdio.h>int main(void){int N; // マッチの本数// int num[10] = {6,2,5,5,4,5,6,3,7,6} // 各数字を作るのに必要なマッチの本数scanf("%d",&N);// 使う数字は1 7のみwhile(N > 1){if(N%2 == 0){printf("1");N -= 2;}else if(N%2 == 1){printf("7");N -= 3;}}printf("\n");return 0;}