結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
|
提出日時 | 2020-08-14 21:52:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 30,592 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-10 15:03:30 |
合計ジャッジ時間 | 2,817 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | WA * 13 |
ソースコード
#include<cstdio> int main(){ int n; scanf("%d",&n); for(int i = 1; i <= n; i++){ int start = i-1; for(int j = 1; j <= n; j++){ printf("%d ",start+1); start = (start+1)%n; } printf("\n"); } return 0; }