結果
| 問題 |
No.563 超高速一人かるた large
|
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2017-06-18 15:10:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 561 bytes |
| コンパイル時間 | 682 ms |
| コンパイル使用メモリ | 76,792 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 20:00:26 |
| 合計ジャッジ時間 | 1,482 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 18 |
ソースコード
// input checker
#include <vector>
#include <iostream>
#include <cassert>
#include <set>
using namespace std;
int main(){
int n;
cin >> n;
if( (1<=n && n<=2000) == false ){
cerr << "invalid n : " << n << endl;
assert(1<=n && n<=2000);
}
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 <= 200000 );
cerr << "all clear" << endl;
return 0;
}
koyumeishi