結果
| 問題 | No.964 2020 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-25 12:18:06 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 344 bytes |
| 記録 | |
| コンパイル時間 | 1,019 ms |
| コンパイル使用メモリ | 213,520 KB |
| 実行使用メモリ | 9,216 KB |
| 最終ジャッジ日時 | 2026-07-06 04:55:53 |
| 合計ジャッジ時間 | 2,714 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
void solve() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll n;
cin >> n;
string s;
ll cnt=1;
for(ll i=n*n-1;i>=0;i--){
s.push_back('0'+cnt);
cnt++;
if(cnt==n+1){
cnt=1;
}
}
cout<<s<<endl;
}
int main() { solve();system("pause"); }