結果
問題 | No.83 最大マッチング |
ユーザー | ccc |
提出日時 | 2018-04-10 17:47:10 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 192 bytes |
コンパイル時間 | 270 ms |
コンパイル使用メモリ | 23,640 KB |
実行使用メモリ | 4,388 KB |
最終ジャッジ日時 | 2023-09-09 03:47:02 |
合計ジャッジ時間 | 1,882 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | RE | - |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | RE | - |
testcase_04 | AC | 0 ms
4,380 KB |
testcase_05 | RE | - |
testcase_06 | AC | 0 ms
4,388 KB |
testcase_07 | RE | - |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | AC | 1 ms
4,384 KB |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:10: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion] printf('7'); ^~~ In file included from main.c:1: /usr/include/stdio.h:332:43: note: expected ‘const char * restrict’ but argument is of type ‘int’ 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; }