結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2021-07-25 09:34:22 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 1,506 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 16:59:58 |
合計ジャッジ時間 | 1,064 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d", &n); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>#include <stdlib.h>int main() {int n, k, i, j = 1, s = 0;scanf("%d", &n);if (n % 2 == 1)printf("7");elseprintf("1");for (i = 1; i < n / 2; i++)printf("1");printf("\n");return EXIT_SUCCESS;}