結果
| 問題 | No.991 N×Mマス計算(構築) |
| コンテスト | |
| ユーザー |
FF256grhy
|
| 提出日時 | 2020-04-22 22:27:54 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 189 bytes |
| 記録 | |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 30,248 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:21:55 |
| 合計ジャッジ時間 | 1,798 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:2:34: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
2 | main(k,w,c,x,i){k=1e9;w=1e5;c=32;scanf("%d",&x);printf("%d %d %d\n* ",x/w+1,w,k);R(x%w,k)R(w-1-x%w,1)c=10;R(1,(x-w+1+x%w+k)%k)R(x/w,k)R(1,1)}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | #define R(n,v) for(i=n;i--;)printf("%d%c",v,c);
main.c:2:49: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
2 | main(k,w,c,x,i){k=1e9;w=1e5;c=32;scanf("%d",&x);printf("%d %d %d\n* ",x/w+1,w,k);R(x%w,k)R(w-1-x%w,1)c=10;R(1,(x-w+1+x%w+k)%k)R(x/w,k)R(1,1)}
| ^~~~~~
main.c:2:49: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
#define R(n,v) for(i=n;i--;)printf("%d%c",v,c);
main(k,w,c,x,i){k=1e9;w=1e5;c=32;scanf("%d",&x);printf("%d %d %d\n* ",x/w+1,w,k);R(x%w,k)R(w-1-x%w,1)c=10;R(1,(x-w+1+x%w+k)%k)R(x/w,k)R(1,1)}
FF256grhy