結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
ccc
|
| 提出日時 | 2018-04-10 17:47:10 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 20:55:00 |
| 合計ジャッジ時間 | 1,903 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / 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 /usr/include/stdio.h:894,
from main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:110:32: note: expected ‘const char * restrict’ but argument is of type ‘int’
110 | printf (const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:8:17: warning: format not a string literal and no format arguments [-Wformat-security]
8 | printf('7');
| ^~~~~~
main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&N);
| ^~~~~~~~~~~~~~
ソースコード
#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