結果
| 問題 |
No.413 +5,000,000pts
|
| ユーザー |
bal4u
|
| 提出日時 | 2019-05-09 21:07:24 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 525 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 29,952 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-07-02 00:51:18 |
| 合計ジャッジ時間 | 661 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
コンパイルメッセージ
main.c: In function 'out':
main.c:10:15: warning: implicit declaration of function 'putchar_unlocked' [-Wimplicit-function-declaration]
10 | #define pc(c) putchar_unlocked(c)
| ^~~~~~~~~~~~~~~~
main.c:20:21: note: in expansion of macro 'pc'
20 | while (i--) pc(b[i]);
| ^~
ソースコード
// yukicoder: No.413 +5,000,000pts
// 2019.5.9 bal4u
#include <stdio.h>
#include <math.h>
typedef long long ll;
#if 1
#define pc(c) putchar_unlocked(c)
#else
#define pc(c) putchar(c)
#endif
void out(ll n) // 非負整数の表示(出力)
{
int i;
char b[50];
i = 0; while (n) b[i++] = n % 10 + '0', n /= 10;
while (i--) pc(b[i]);
pc('\n');
}
#define MAX 999999999
int main()
{
ll i, j, k, d;
i = 0; for (j = MAX; i < 100000; j--) {
d = j*j+j-1;
k = 50; while (k--) out(d--);
i += 50;
}
return 0;
}
bal4u