結果
問題 |
No.1486 ロボット
|
ユーザー |
![]() |
提出日時 | 2020-04-20 08:37:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 2,041 ms |
コンパイル使用メモリ | 195,020 KB |
最終ジャッジ日時 | 2025-01-09 21:52:44 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 17 |
ソースコード
/* validator */ #include<bits/stdc++.h> #define ALL(v) std::begin(v),std::end(v) using lint=long long; int main(){ std::string s;std::getline(std::cin,s); std::string t;std::getline(std::cin,t); assert(std::cin.eof()&&t.empty()); lint n=s.length(); lint l=0,r; for(lint i=0;i<5;i++){ for(r=l;r<n&&s.at(r)!=' ';r++); assert(r-l<=9); lint x=std::stoll(s.substr(l,r-l)); assert(x<=1'000'000'000&&(i==4||x<=500)); } }