結果
| 問題 | No.839 Keep Distance and Nobody Explodes |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-15 05:29:38 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 371 ms |
| コンパイル使用メモリ | 72,576 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-12 05:34:43 |
| 合計ジャッジ時間 | 2,061 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / tmp-judge_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 29 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int N;
main()
{
cin>>N;
int id=1;
for(int i=0;i<N/2;i++)for(int j=0;j<N;j++)cout<<id<<(j==N-1?"\n":" "),id+=2;
id=2;
for(int i=N/2;i<N;i++)for(int j=0;j<N;j++)cout<<id<<(j==N-1?"\n":" "),id+=2;
}