結果
問題 |
No.839 Keep Distance and Nobody Explodes
|
ユーザー |
|
提出日時 | 2019-06-15 05:29:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 578 ms |
コンパイル使用メモリ | 63,232 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 03:42:46 |
合計ジャッジ時間 | 2,859 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }