提出 #25919460
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
#define N 1000005
#define int long long
#define sz(c) (int)c.size()
#define fr first
#define ll long long
#define sc second
#define pb push_back
#define ppb pop_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a ; i<n ; i++)
#define r0 return 0;
#define endl '\n'
#define INF (int)1e15
const int M = 1000000007;
const int U = 998244353;
/* Debug Begins */
# define trace(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); \
stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
string to_string(char c) { return "'" + string(1, c) + "'";}
string to_string(string s) { return '"' + s + '"';}
string to_string(bool f) { if(f) return "True"; else return "False";}
string to_string(const char* s) { return to_string((string) s);}
template<typename A> string to_string(A);
template<typename A, typename B> string to_string(pair<A, B> p){
return "(" + to_string(p.first) + ": " + to_string(p.second) + ")";}
template<typename A> string to_string(A v) {bool f = false; string r = "{";
for (auto x: v) {if (f) r += ", "; r += to_string(x); f = true;} return r += "}";}
template<typename A> string to_string(vector<vector<A>> v) {string r;
for (auto x: v) r += "\n" + to_string(x); return r;}
int Nerr;
template<typename A> string to_string(A *p) {return to_string(vector<A>(p, p + Nerr));}
void err(istream_iterator<string>) { cerr << endl; }
template<typename T,typename... Args> void err(istream_iterator<string> it, T a, Args... args) {
cerr << *it << " = " << to_string(a) << "; "; err(++it, args...); }
template<typename T> void kek(T ans) {cout << ans << endl; exit(0);}
#define Lu(...) [&] (auto &&u) { return __VA_ARGS__; }
#define Luv(...) [&] (auto &&u, auto &&v) { return __VA_ARGS__; }
/***************************************************************/
signed main()
{
ios_base::sync_with_stdio(0);
int TESTS=1;
// cin>>TESTS;
while(TESTS--)
{
int n;
cin >> n;
if(n < 40) cout << 40-n << endl;
else if(n < 70) cout << 70-n << endl;
else if(n < 90) cout << 90 - n << endl;
else cout << "expert" << endl;
}
}
提出情報
コンパイルエラー
./Main.cpp: In function ‘std::string to_string(std::vector<std::vector<_Tp> >)’:
./Main.cpp:34:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
34 | for (auto x: v) r += "\n" + to_string(x); return r;}
| ^~~
./Main.cpp:34:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
34 | for (auto x: v) r += "\n" + to_string(x); return r;}
| ^~~~~~
ジャッジ結果
| セット名 |
Sample |
All |
| 得点 / 配点 |
0 / 0 |
100 / 100 |
| 結果 |
|
|
| セット名 |
テストケース |
| Sample |
example_00, example_01, example_02, example_03 |
| All |
example_00, example_01, example_02, example_03, rand_00, rand_01, rand_02, rand_03, rand_04, rand_05, rand_06 |
| ケース名 |
結果 |
実行時間 |
メモリ |
| example_00 |
AC |
5 ms |
3584 KiB |
| example_01 |
AC |
2 ms |
3612 KiB |
| example_02 |
AC |
2 ms |
3456 KiB |
| example_03 |
AC |
2 ms |
3496 KiB |
| rand_00 |
AC |
2 ms |
3516 KiB |
| rand_01 |
AC |
2 ms |
3608 KiB |
| rand_02 |
AC |
2 ms |
3616 KiB |
| rand_03 |
AC |
3 ms |
3564 KiB |
| rand_04 |
AC |
2 ms |
3600 KiB |
| rand_05 |
AC |
2 ms |
3500 KiB |
| rand_06 |
AC |
2 ms |
3500 KiB |