結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2018-02-09 23:58:35 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 5 ms / 5,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 393 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 06:14:20 |
合計ジャッジ時間 | 1,096 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <stdio.h>int main() {int N, i;scanf("%d", &N);if (N % 2 == 0) {for(i = 1; i <= N / 2; i++) {printf("%d", 1);}} else {printf("%d", 7);if (N >= 5) {for(i = 1; i <= (N - 3) / 2 ; i++) {printf("%d", 1);}}}}