結果

問題 No.3722 Blended Taste
コンテスト
ユーザー suamax
提出日時 2026-09-19 13:11:06
言語 C
(gcc 15.3.0)
コンパイル:
gcc-15 -O2 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 44 ms / 2,000 ms
+ 321µs
コード長 305 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,539 ms
コンパイル使用メモリ 39,296 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2026-09-19 13:22:06
合計ジャッジ時間 6,321 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<stdio.h>
#include<math.h>
#include <stdlib.h>

int main()
{
    int n=0;
    int m=0;
    int k=0;
    
    scanf("%d %d %d",&n,&m,&k);
    
    for(int i=0;i<n;i++){
      for(int i2=0;i2<n;i2++){
        printf("%d ", ((i2 + (i*k)) % m)+1 );
      }
      printf("\n");
    }
  
    return 0;
}
0