結果
問題 |
No.964 2020
|
ユーザー |
|
提出日時 | 2024-11-25 12:18:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 1,918 ms |
コンパイル使用メモリ | 193,912 KB |
最終ジャッジ日時 | 2025-02-25 06:11:48 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:23:28: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | int main() { solve();system("pause"); } | ~~~~~~^~~~~~~~~
ソースコード
#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"); }