結果
| 問題 |
No.192 合成数
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-04-13 06:26:34 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 326 bytes |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 06:48:01 |
| 合計ジャッジ時間 | 1,201 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
コンパイルメッセージ
main.c: In function 'main':
main.c:8:14: warning: implicit declaration of function 'getchar_unlocked' [-Wimplicit-function-declaration]
8 | #define gc() getchar_unlocked()
| ^~~~~~~~~~~~~~~~
main.c:17:20: note: in expansion of macro 'gc'
17 | int c, p = gc();
| ^~
main.c:9:15: warning: implicit declaration of function 'putchar_unlocked' [-Wimplicit-function-declaration]
9 | #define pc(c) putchar_unlocked(c)
| ^~~~~~~~~~~~~~~~
main.c:18:34: note: in expansion of macro 'pc'
18 | while ((c = gc()) > ' ') pc(p), p = c;
| ^~
ソースコード
// yukicoder: No.192 合成数
// 2019.4.12 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, p = gc();
while ((c = gc()) > ' ') pc(p), p = c;
pc('4'), pc('\n');
return 0;
}
bal4u