結果
| 問題 |
No.809 かけ算
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-04-13 13:47:22 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 309 bytes |
| コンパイル時間 | 366 ms |
| コンパイル使用メモリ | 27,264 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 11:04:52 |
| 合計ジャッジ時間 | 874 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 |
コンパイルメッセージ
main.c: In function 'main':
main.c:8:15: warning: implicit declaration of function 'putchar_unlocked' [-Wimplicit-function-declaration]
8 | #define pc(c) putchar_unlocked(c)
| ^~~~~~~~~~~~~~~~
main.c:17:9: note: in expansion of macro 'pc'
17 | pc('1'), pc(' ');
| ^~
main.c:7:14: warning: implicit declaration of function 'getchar_unlocked' [-Wimplicit-function-declaration]
7 | #define gc() getchar_unlocked()
| ^~~~~~~~~~~~~~~~
main.c:18:21: note: in expansion of macro 'gc'
18 | while ((c = gc()) >= '0') pc(c);
| ^~
ソースコード
// yukicoder: No.182 新規性の虜
// 2019.4.13 bal4u
#include <stdio.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int main()
{
int c;
pc('1'), pc(' ');
while ((c = gc()) >= '0') pc(c);
pc('\n');
return 0;
}
bal4u