結果
| 問題 | No.1399 すごろくで世界旅行 (構築) |
| コンテスト | |
| ユーザー |
publfl
|
| 提出日時 | 2021-02-19 21:59:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 342 ms |
| コンパイル使用メモリ | 31,616 KB |
| 実行使用メモリ | 7,168 KB |
| 最終ジャッジ日時 | 2024-09-16 19:00:15 |
| 合計ジャッジ時間 | 21,001 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 22 |
ソースコード
#include <stdio.h>
int ans[1010][1010];
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(b==1)
{
for(int i=1;i<=a;i++)
{
for(int j=1;j<=a;j++) printf("1");
printf("\n");
}
printf("\n");
}
else
{
for(int i=1;i<=a;i++) ans[i][1] = 1;
for(int i=1;i<=a;i++) ans[1][i] = 1;
for(int i=1;i<=a;i++)
{
for(int j=1;j<=a;j++) printf("%d",ans[i][j]);
printf("\n");
}
printf("\n");
}
}
publfl