結果
| 問題 |
No.562 超高速一人かるた small
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2017-06-18 15:20:00 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 555 bytes |
| コンパイル時間 | 807 ms |
| コンパイル使用メモリ | 75,648 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 16:35:42 |
| 合計ジャッジ時間 | 1,520 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 21 |
ソースコード
// input checker
#include <vector>
#include <iostream>
#include <cassert>
#include <set>
using namespace std;
int main(){
int n;
cin >> n;
if( (1<=n && n<=20) == false ){
cerr << "invalid n : " << n << endl;
assert(1<=n && n<=20);
}
int sum = 0;
set<string> s;
for(int i=0; i<n; i++){
string tmp;
cin >> tmp;
sum += tmp.size();
for(auto c : tmp){
assert( 'a' <= c && c <= 'z' );
}
s.insert( tmp );
}
assert( s.size() == n );
assert( sum <= 1000 );
cerr << "all clear" << endl;
return 0;
}
koyumeishi