結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
ccc
|
| 提出日時 | 2018-04-10 17:47:10 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 35,032 KB |
| 最終ジャッジ日時 | 2026-02-24 00:56:48 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 4 RE * 6 |
コンパイルメッセージ
main.c: In function 'main':
main.c:8:24: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf('7');
| ^~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * __restrict__' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N&1){
N>>=1;
printf('7');
N--;
}else{
N>>=1;
}
while(N){
putchar('1');
N--;
}
putchar('\n');
return 0;
}
ccc