提出 #19002651
ソースコード 拡げる
#include<cstdio>
int n;
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++) {
printf("%d %d\n", (i * 2) % n + 1, (i * 2 + 1) % n + 1);
}
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - AtCoder Jumper |
| ユーザ | gs12117 |
| 言語 | C++ (GCC 9.2.1) |
| 得点 | 500 |
| コード長 | 170 Byte |
| 結果 | AC |
| 実行時間 | 3 ms |
| メモリ | 1704 KiB |
コンパイルエラー
./Main.cpp: In function ‘int main()’:
./Main.cpp:4:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
4 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 500 / 500 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, example0.txt, example1.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 3 ms | 1688 KiB |
| 001.txt | AC | 1 ms | 1704 KiB |
| 002.txt | AC | 1 ms | 1676 KiB |
| 003.txt | AC | 3 ms | 1676 KiB |
| 004.txt | AC | 1 ms | 1632 KiB |
| 005.txt | AC | 1 ms | 1676 KiB |
| 006.txt | AC | 1 ms | 1680 KiB |
| 007.txt | AC | 1 ms | 1704 KiB |
| 008.txt | AC | 1 ms | 1640 KiB |
| 009.txt | AC | 1 ms | 1672 KiB |
| example0.txt | AC | 1 ms | 1680 KiB |
| example1.txt | AC | 1 ms | 1672 KiB |